Interestingly, the MinGW port of g++ 3.4.5 does not emit any warnings at -Wall, the Comeau online compiler does the same, and MSVC8 only warns about an unreferenced formal parameter at /W4. rockstar1707 used the MinGW port of g++ 3.4.5, so this seems inconsistent.Quote:
anon: To generate the warning, I think this code will suffice. It also demonstrates the reason why the warning is there.
And yes, in retrospect I interpreted rockstar1707's reported warning message completely wrong :o