Skip to content

Commit

Permalink
cmake: set -Wall and -Werror in one call
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and arogge committed Nov 2, 2021
1 parent 2b7a815 commit 9e095ac
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ if(${compiler_has_no_unknown_pragmas})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas")
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")

# warn on sign-conversion include(CheckCCompilerFlag)
# CHECK_C_COMPILER_FLAG(-Wsign-conversion c_compiler_will_warn_sign_conversion)
#
Expand Down Expand Up @@ -338,8 +335,8 @@ if(developer)
add_definitions("-DDEVELOPER=1")
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall")

include(BareosSetVariableDefaults)

Expand Down

0 comments on commit 9e095ac

Please sign in to comment.