CMake: Update a compiler version check
It looks like AppleClang 10 and 11 generate bogus missing braces warnings as well. The macOS Intel builder, which has AppleClang 11.0.0.11000033 installed, is failing with wireshark/epan/dissectors/packet-rtps.c:11403:63: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] coherent_set_entity_info coherent_set_entity_info_object = {0}; ^ {}
This commit is contained in:
parent
ad3205000b
commit
dd07fb5a15
|
@ -695,7 +695,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 "10.0"))
|
||||
(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")
|
||||
list(APPEND WIRESHARK_C_ONLY_FLAGS -Wno-missing-field-initializers)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue