Reputation: 63718
I know you can use a #pragma
to disable a warning in a specific file, but I want to "turn off" a certain warning for a whole VC++ 2008 project.
I found an option Configuration Properties->C/C++->Advanced->Disable Specific Warnings
but when I entered the numeric warning code and re-compiled the .cpp file in question, the warning was still generated.
Upvotes: 6
Views: 4943
Reputation: 625
If your project includes other projects or uses objects from another project, make sure you add the warning disable on the project where the warning occurs. This should always work.
Upvotes: 2
Reputation: 325
Try to use precompiled header and put warnings disable code there. It worked for me with warning C4005.
Upvotes: 1