We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dced09 commit 12b7529Copy full SHA for 12b7529
CMakeLists.txt
@@ -449,7 +449,12 @@ endif()
449
450
if(FLB_COMPILER_STRICT_POINTER_TYPES)
451
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
452
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=incompatible-pointer-types")
+ add_compile_options(-Werror=incompatible-pointer-types)
453
+ endif()
454
+ # Currently, AppleClang has more struct rules when using -Werror=incompatible-pointer-types.
455
+ # We still permit to discarding const qualifiers warnings.
456
+ if(CMAKE_C_COMPILER_ID MATCHES "AppleClang")
457
+ add_compile_options(-Wno-incompatible-pointer-types-discards-qualifiers)
458
endif()
459
460
0 commit comments