Vs2008: disable warnings in included header files outside the project

Is it possible? I do not want to disable the warning globally, because I want to check my own warning header files.

+4
source share
1 answer

You can turn off warnings around including an external header file:

#pragma warning( push ) #pragma warning( disable: the warning) // include here #pragma warning( pop ) 

If you need to include a title several times, you can create a title using pragmas and enable it. The same question was asked here .

+4
source

Source: https://habr.com/ru/post/1389118/


All Articles