[Bf-blender-cvs] [72461c09b47] master: Windows: Clean-up warnings originating from bullet

Ray Molenkamp noreply at git.blender.org
Wed Mar 11 21:11:23 CET 2020


Commit: 72461c09b472686cb659223cc628a2b1c728c35c
Author: Ray Molenkamp
Date:   Wed Mar 11 14:11:19 2020 -0600
Branches: master
https://developer.blender.org/rB72461c09b472686cb659223cc628a2b1c728c35c

Windows: Clean-up warnings originating from bullet

Bullet currently generates the majority of the warnings
on windows all of them are silly. This patch disables
all warns from bullet for now.

We should revisit this if/when we update bullet
to a newer version.

Reviewed By: sergey brecht

Differential Revision: https://developer.blender.org/D7118

===================================================================

M	extern/bullet2/CMakeLists.txt

===================================================================

diff --git a/extern/bullet2/CMakeLists.txt b/extern/bullet2/CMakeLists.txt
index f1bb6a37cbf..5f345c6a901 100644
--- a/extern/bullet2/CMakeLists.txt
+++ b/extern/bullet2/CMakeLists.txt
@@ -415,4 +415,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
 endif()
 
+if(WIN32)
+  # bullet is responsible for quite a few silly warnings
+  # repress all of them. Not great, but they really needed
+  # to sort that out themselves.
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0")
+endif()
+
 blender_add_lib(extern_bullet "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")



More information about the Bf-blender-cvs mailing list