Disable uninitialised warnings for MSYS/MinGW CI build
This commit is contained in:
2
.github/workflows/ci-build.yml
vendored
2
.github/workflows/ci-build.yml
vendored
@@ -377,7 +377,7 @@ jobs:
|
|||||||
cd build
|
cd build
|
||||||
|
|
||||||
echo "::group::CMake"
|
echo "::group::CMake"
|
||||||
cmake .. -G"MSYS Makefiles"
|
cmake .. -DOPTION_NO_WARN_UNINIT=1 -G"MSYS Makefiles"
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "::group::Build"
|
echo "::group::Build"
|
||||||
|
@@ -158,6 +158,10 @@ macro(compile_flags)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
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")
|
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
-Wall
|
-Wall
|
||||||
|
Reference in New Issue
Block a user