forked from osmocom/wireshark
CMake: Update a compiler version check
parent
ae4868f4bd
commit
c06a38da31
|
@ -698,7 +698,7 @@ else() # ! MSVC
|
|||
if((CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "5.1") OR
|
||||
(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "6.0") OR
|
||||
(CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "12.0"))
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_VERSION VERSION_LESS "4.7")
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_VERSION VERSION_LESS "5.0")
|
||||
list(APPEND WIRESHARK_C_ONLY_FLAGS -Wno-missing-field-initializers)
|
||||
endif()
|
||||
# Silence warnings for initialization of nested structs like
|
||||
|
|
Loading…
Reference in New Issue