add: visual studio Compiler warning (order of attribute init in c++ constructors)
This commit is contained in:
parent
e03eaf5b81
commit
23284e4dde
Notes:
blender-bot
2023-02-14 05:36:11 +01:00
Referenced by issue #58229, Blender 2.79 & 2.8 - Undo when dealing with separate by loose parts ends up with duplicate objects Referenced by issue #58193, Blender 2.8 - Adding new collection from the Objects Menu, does not add the collection to the scene Referenced by issue #58195, Blender 2.8 - No way of adding collections that are manually created to the scene collection Referenced by issue #58188, Extreme FPS loss (24x) between 2.79 and 2.8 with particle systems Referenced by issue #58190, Blender 2.8 - Paste selection from buffer - Disabling 'Active Collection' doesnt work
|
@ -1458,6 +1458,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}")
|
||||
|
|
Loading…
Reference in New Issue