c++ - How to configure Visual Studio not to output warnings from libraries? -
is there way prevent visual studio printing out warnings included libraries?
\wall gives me loads of warnings stl , qt headers, although want see originating own code (i.e. code part of current visual studio project).
you can use pragma set warning levels each file.
so before include
#pragma warning( push ) #pragma warning( disable : 4705 ) #pragma warning( disable : 4706 ) #pragma warning( disable : 4707 ) // code #include files here #pragma warning( pop )
more information here: http://msdn.microsoft.com/en-us/library/2c8f766e%28v=vs.80%29.aspx
Comments
Post a Comment