Skip to content

Commit

Permalink
cmake: now we are compiling without warnings on macos, make them errors
Browse files Browse the repository at this point in the history
Just like linux - make Warnings errors, so people noticed them on CI
faster.

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz committed Apr 28, 2020
1 parent 524a471 commit 3fd6a12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ if(APPLE)
#full Single Unix Standard v3 (SUSv3) conformance (the Unix API)
add_definitions(-D_DARWIN_C_SOURCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -Wno-unused-parameter -Wno-sign-compare")
if(DEFINED ENV{TRAVIS} AND DEFINED ENV{CI})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
endif()
endif()

include(CheckSymbolExists)
Expand Down

0 comments on commit 3fd6a12

Please sign in to comment.