[Bf-blender-cvs] [3c767ceccea] master: add: visual studio Compiler warning (order of attribute init in c++ constructors)
Gaia Clary
noreply at git.blender.org
Thu Nov 29 18:29:39 CET 2018
Commit: 3c767ceccea9c9719fcd885a9ef8b78792cdf2a4
Author: Gaia Clary
Date: Thu Nov 29 16:56:33 2018 +0100
Branches: master
https://developer.blender.org/rB3c767ceccea9c9719fcd885a9ef8b78792cdf2a4
add: visual studio Compiler warning (order of attribute init in c++ constructors)
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dfeb1d69db0..83177defe6f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1526,6 +1526,11 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC")
"/we4431" # missing type specifier - int assumed
)
+ if(MSVC_VERSION GREATER_EQUAL 1911)
+ # see https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5038?view=vs-2017
+ set(_WARNINGS "${_WARNINGS} /w35038") #order of initialisation in c++ constructors
+ endif()
+
string(REPLACE ";" " " _WARNINGS "${_WARNINGS}")
set(C_WARNINGS "${_WARNINGS}")
set(CXX_WARNINGS "${_WARNINGS}")
More information about the Bf-blender-cvs
mailing list