Search code examples
visual-studiovisual-c++visual-studio-2005warningssuppress-warnings

How to Disable a warning across projects in Visual Studio


I know this sounds bad but how can I disable/suppress a specific warning for all the projects in a solution. All of my projects are VC++ projects. Is it possible? If yes, how can this be done?

Environment is Visual Studio 2005


Solution

  • I don't think it can be done using the IDE itself. The way we do it is to have a global include file Configure.h that contains stuff that has to be set/defined/declared for every source file. This include file also disables some warnings using pragmas.

    Regards,

    Sebastiaan