I generally like to compile against warning level 4 in Visual Studio and treat all warnings as errors. The problem is, Ogre3D is not compiled with warning level 3 (neither is FBX SDK or OIS, which I am also using), and that poses a problem because now I have a ton of warnings from Ogre3D libraries that are now treated as errors. So far I have been compiling at level 3, but that makes me very uneasy. Is there any way to disable warnings for specific 3rd party libraries over which I have no control?
Share
You don’t say exactly how you are compiling, but here are some options:
1 – Inside Visual Studio, you can set the warning level for individual source files via the Properties for each source file
2 – You can also change the the warning level dynamically within a file using
which sets the warning level to 3 between the two pragmas.