Fix: Warnings after Ceres update
The external libraries did not properly ignore Wreorder for GCC and MSVC. Pull Request: https://projects.blender.org/blender/blender/pulls/136946
This commit is contained in:
committed by
Sergey Sharybin
parent
b2950de4a2
commit
85a97b01a9
@@ -1981,7 +1981,8 @@ if(CMAKE_COMPILER_IS_GNUCC)
|
|||||||
CXX_WARN_NO_COMMENT -Wno-comment
|
CXX_WARN_NO_COMMENT -Wno-comment
|
||||||
CXX_WARN_NO_UNUSED_TYPEDEFS -Wno-unused-local-typedefs
|
CXX_WARN_NO_UNUSED_TYPEDEFS -Wno-unused-local-typedefs
|
||||||
CXX_WARN_NO_UNUSED_VARIABLE -Wno-unused-variable
|
CXX_WARN_NO_UNUSED_VARIABLE -Wno-unused-variable
|
||||||
CXX_WARN_NO_UNUSED_VARIABLE -Wno-uninitialized
|
CXX_WARN_NO_UNINITIALIZED -Wno-uninitialized
|
||||||
|
CXX_WARN_NO_REORDER -Wno-reorder
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -694,6 +694,10 @@ macro(remove_strict_flags)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
add_cxx_flag(
|
||||||
|
# Warning C5038: data member 'foo' will be initialized after data member 'bar'.
|
||||||
|
"/wd5038"
|
||||||
|
)
|
||||||
remove_cc_flag(
|
remove_cc_flag(
|
||||||
# Restore warn C4100 (unreferenced formal parameter) back to w4.
|
# Restore warn C4100 (unreferenced formal parameter) back to w4.
|
||||||
"/w34100"
|
"/w34100"
|
||||||
|
|||||||
Reference in New Issue
Block a user