I\'m using MSVC with a CMaked project. As a result, I\'ve enabled many of the flags on MSVC which were enabled for gcc and clang. However, the /Wall warning level is giving
/Wall
is very pedantic. /W4
is probably all you really need. To answer your question, you can disable specific warnings around your headers with:
#pragma warning(disable:xxxx)
#include
#pragma warning(default:xxxx)
Or change the warning level with:
#pragma warning(push,3)
#include
#pragma warning(pop)
See the MSDN documentation: http://msdn.microsoft.com/en-us/library/2c8f766e.aspx