You did not specify exactly how you compile, but here are a few options:
1 - Inside Visual Studio, you can set a warning level for individual source files using the properties for each source file
2 - You can also dynamically change the warning level in a file using
#pragma warning(push, 3) // Some code, perhaps #includes #pragma warning(pop)
which sets the warning level to 3 between two pragmas.
David norman
source share