Only use this method around a block of headers that you cannot change, but that you need to include.
You can selectively, and temporarily disable all warnings like this:
#pragma warning(push, 0)
//Some includes with unfixable warnings
#pragma warning(pop)
Instead of 0 you can optionally pass in the warning number to disable, so something like:
#pragma warning( push )
#pragma warning( disable : 4081)
#pragma warning( disable : 4706 )
// Some code
#pragma warning( pop )
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…