diff --git a/source/lib/precompiled.h b/source/lib/precompiled.h index 1ad826cb15..3ef05e4ad2 100755 --- a/source/lib/precompiled.h +++ b/source/lib/precompiled.h @@ -9,11 +9,12 @@ // this policy yields the best compile performance with or without PCH. #ifdef _MSC_VER -#pragma warning(disable:4996) // function is deprecated -#pragma warning(disable:4786) // identifier truncated to 255 chars -// VS2005 code analysis warnings - disable the very frequent ones: -#pragma warning(disable:6011) // dereferencing NULL pointer -#pragma warning(disable:6246) // local declaration hides declaration of the same name in outer scope +# pragma warning(disable:4996) // function is deprecated +# pragma warning(disable:4786) // identifier truncated to 255 chars +# if _MSC_VER >= 1400 // VS2005 code analysis warnings - disable the very frequent ones: +# pragma warning(disable:6011) // dereferencing NULL pointer +# pragma warning(disable:6246) // local declaration hides declaration of the same name in outer scope +# endif #endif // make these available everywhere for convenience: