Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2018-11-29 18:56:33 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-11-29 19:04:12 +0300
commit3c767ceccea9c9719fcd885a9ef8b78792cdf2a4 (patch)
treee105284764e381f45de496977ea2328a2848b4ac /CMakeLists.txt
parent2c154399a21a846223fe06975f7777a3c6a621bc (diff)
add: visual studio Compiler warning (order of attribute init in c++ constructors)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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}")