diff --git a/CMakeLists.txt b/CMakeLists.txt index e92020e80ed..ad5b1d12eea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1981,7 +1981,8 @@ if(CMAKE_COMPILER_IS_GNUCC) CXX_WARN_NO_COMMENT -Wno-comment CXX_WARN_NO_UNUSED_TYPEDEFS -Wno-unused-local-typedefs 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 ) diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index efc00f8d8a3..2d15bc72fdc 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -694,6 +694,10 @@ macro(remove_strict_flags) endif() if(MSVC) + add_cxx_flag( + # Warning C5038: data member 'foo' will be initialized after data member 'bar'. + "/wd5038" + ) remove_cc_flag( # Restore warn C4100 (unreferenced formal parameter) back to w4. "/w34100"