From 4add5f6fd1cfd977b3cd02054fe64d29603e340b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 7 Jan 2009 15:33:24 +0000 Subject: [PATCH] Added supression VS warning "C4706: assignment within conditional expression" thanks gets spat out even for perfectly valid if ((variable=expression)) {} usage. --- include/osg/Export | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/osg/Export b/include/osg/Export index 422a7ad00..733b5e0a3 100644 --- a/include/osg/Export +++ b/include/osg/Export @@ -30,6 +30,10 @@ #pragma warning( disable : 4786 ) #pragma warning( disable : 4305 ) #pragma warning( disable : 4996 ) + + + // suppress warnings about valid if ((variable=expression)) {} usage. + #pragma warning( disable : 4706 ) #endif #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)