From 580d0c7892e8a46fd7a6e71775e80062ccb7328b Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sun, 3 Jul 2005 00:50:49 +0000 Subject: [PATCH] Everything-except-for-VS2005 fix: disable warning disabling to avoid warnings This was SVN commit r2456. --- source/lib/precompiled.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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: