Ignore bool cast warning for MSVC and C++
authorRoland Schulz <roland@utk.edu>
Fri, 21 Dec 2012 06:34:09 +0000 (01:34 -0500)
committerRoland Schulz <roland@utk.edu>
Fri, 21 Dec 2012 06:34:09 +0000 (01:34 -0500)
We have been ignoring this warning for C++ in master for a while.
No need for it for the GPU code either.

Change-Id: Ib76541d344dc520d5a14da241b29d92362311980

cmake/gmxCFlags.cmake

index e995e7709fd94e065935f1c851da72db9aaeee17..62fc6f79f4b83ac378e5b64a9d802dfb4b7e7c8b 100644 (file)
@@ -178,8 +178,9 @@ MACRO(gmx_c_flags)
     if (MSVC)
         # disable warnings for: 
         #      inconsistent dll linkage
+        #      forcing value to bool (for C++)
         GMX_TEST_CFLAG(CFLAGS_WARN "/wd4273" GMXC_CFLAGS)
-        GMX_TEST_CXXFLAG(CXXFLAGS_WARN "/wd4273" GMXC_CXXFLAGS)
+        GMX_TEST_CXXFLAG(CXXFLAGS_WARN "/wd4273 /wd4800" GMXC_CXXFLAGS)
     endif()
 
     if (CMAKE_C_COMPILER_ID MATCHES "Clang")