mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
fix for GCC 9.2: -Wno-maybe-uninitialized
This commit is contained in:
parent
70c8cabb34
commit
a1fb10b766
@ -603,6 +603,10 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 7.0)
|
||||
set(EXE_CFLAGS "${EXE_CFLAGS} -Werror=implicit-fallthrough")
|
||||
endif()
|
||||
# GCC 9.2 and older are unable to detect valid variable initialization in some cases
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 9.2)
|
||||
set(EXE_CFLAGS "${EXE_CFLAGS} -Wno-maybe-uninitialized")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user