Skip to content

Commit

Permalink
Do not use -Wpedantic with old Xcode gcc
Browse files Browse the repository at this point in the history
Fixes: #88
  • Loading branch information
barracuda156 committed Jan 7, 2024
1 parent 89a16c8 commit c64b03d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
else(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c89")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpedantic")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
if ((CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.2)
OR CMAKE_C_COMPILER_ID MATCHES "Clang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpedantic")
endif()
endif()

if(ARGTABLE3_ENABLE_ARG_REX_DEBUG)
Expand Down

0 comments on commit c64b03d

Please sign in to comment.