I'd like to compile my project with /Wall.
When I do this I get tons of warning from third-party code (boost libraries, other system header files). The only place where I include these third-party header files is in my precompiled header (stdafx.h
).
I tried this (in stdafx.h
)
#pragma warning(push,3)
// include all the third-party headers here
#pragma warning(pop)
to compile all third-party code with warning level 3.
However I still get hundreds of warnings from files like math.h
, xmemory
, vector
, string_generator.hpp
(boost.uuid), placeholders.hpp
(boost.asio), ...
How can I make sure to compile all third-party code with warning level 3 while compiling my own code with all warnings enabled?