[Bf-blender-cvs] [3994084e6a3] master: Cleanup: Fix build warnings with MSVC
Ray Molenkamp
noreply at git.blender.org
Sat Jun 29 17:43:01 CEST 2019
Commit: 3994084e6a33a32b111188b91c28440181405f1d
Author: Ray Molenkamp
Date: Sat Jun 29 09:42:49 2019 -0600
Branches: master
https://developer.blender.org/rB3994084e6a33a32b111188b91c28440181405f1d
Cleanup: Fix build warnings with MSVC
gflags emits a few unused variable warnings since the main
CMakeLists.txt raised the warning from w4 down to w3. This
restores it back to w4 in the remove_strict_flags macro.
===================================================================
M build_files/cmake/macros.cmake
===================================================================
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index e781186ca74..c2f608de921 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -713,7 +713,7 @@ macro(remove_strict_flags)
endif()
if(MSVC)
- # TODO
+ remove_cc_flag(/w34189) # Restore warn C4189 (unused variable) back to w4
endif()
endmacro()
More information about the Bf-blender-cvs
mailing list