Disable uninitialised warnings for MSYS/MinGW CI build

This commit is contained in:
Jonathan G Rennison
2022-06-25 12:05:00 +01:00
parent 0ed30d0200
commit 13557d868a
2 changed files with 5 additions and 1 deletions

View File

@@ -377,7 +377,7 @@ jobs:
cd build
echo "::group::CMake"
cmake .. -G"MSYS Makefiles"
cmake .. -DOPTION_NO_WARN_UNINIT=1 -G"MSYS Makefiles"
echo "::endgroup::"
echo "::group::Build"

View File

@@ -158,6 +158,10 @@ macro(compile_flags)
endif()
endif()
endif()
if (OPTION_NO_WARN_UNINIT)
add_compile_options(-Wno-maybe-uninitialized -Wno-uninitialized)
endif (OPTION_NO_WARN_UNINIT)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
add_compile_options(
-Wall