I’m learning my way around visual studio at the moment. If I’ve turned set /Wall I’ll be greeted with a seemingly unhealthy amount of warning messages although my application will compile just fine.
Is this normal? Changing the error level will stop the messages. It looks as if they are all related to the C++ STL or its header files – same thing?
If I build the program using code::blocks (GCC) then no errors are reported despite the same warning level.
What’s going on here?
update:
visual studio /Wall output: http://pastebin.com/FBGLd2Hb
visual studio /W4 output: http://pastebin.com/YuWKVS9G
The code is actually from Wrox Professional C++.
I could be wrong about my usage of the word warnings?
With g++
-Walldoes not turn on all warnings, just a practical subset. I suspect that with MSVC/Wallturns on more warnings than is practical. MSVC is very enthusiastic about warnings.With MSVC use
/W4for high warning level.You’ll have to turn off MSVC sillywarnings; you can use my anti-MSVC-sillywarnings header for that.
Cheers & hth.,