VC ++ 2010: compilation with / Wall

I would like to compile my project with / Wall.

When I do this, I get tons of warnings from third-party code (additional libraries, other system header files). The only place 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 such as math.h, xmemory, vector, string_generator.hpp(boost.uuid), placeholders.hpp(boost.asio), ...

How can I compile all third-party code with warning level 3 when compiling my own code with warnings turned on?

+3
3

, StdAfx.h, .

, , , , .

. , stdafx ( , ). , stdafx - - , .

+1

/W4 , /Wall. stl, tr1 windows /W 4. .

, , #pragma , , (, , inlining).

+1

. , , , . MFC ATL, V++ - , , push/pop.

0

All Articles