comment warnings as errors for MSVC - it too easily made small problems like unused...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 27 Sep 2011 12:08:35 +0000 (12:08 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 27 Sep 2011 12:08:35 +0000 (12:08 +0000)
with GCC we have *some* warnings as errors which works out better.

intern/ghost/CMakeLists.txt
source/blender/blenkernel/CMakeLists.txt

index bdda0f3..e028c4e 100644 (file)
@@ -248,9 +248,10 @@ elseif(UNIX)
        endif()
 
 elseif(WIN32)
-       if(MSVC)
-               set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
-       endif()
+       ## Warnings as errors, this is too strict!
+       #if(MSVC)
+       #       set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
+       #endif()
 
        list(APPEND INC_SYS
                ${WINTAB_INC}
index 93ab29c..9174914 100644 (file)
@@ -361,8 +361,9 @@ if(WITH_GAMEENGINE)
        )
 endif()
 
-if(MSVC)
-       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
-endif()
+## Warnings as errors, this is too strict!
+#if(MSVC)
+#      set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
+#endif()
 
 blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}")