Skip to content
Permalink
Browse files

Disable -Werror by default

  • Loading branch information
m-kuhn committed Sep 6, 2018
1 parent 80750ce commit 351eb5787db15d72556cf4f118dba0cb99c41f85
Showing with 8 additions and 2 deletions.
  1. +3 −1 .ci/travis/linux/docker-build-test.sh
  2. +5 −1 CMakeLists.txt
@@ -56,7 +56,9 @@ cmake \
-DWITH_SERVER=ON \
-DDISABLE_DEPRECATED=ON \
-DPYTHON_TEST_WRAPPER="timeout -sSIGSEGV 55s"\
-DCXX_EXTRA_FLAGS="${CLANG_WARNINGS}" ..
-DCXX_EXTRA_FLAGS="${CLANG_WARNINGS}" \
-DWERROR=TRUE \
..
echo "travis_fold:end:cmake"

#######
@@ -470,7 +470,11 @@ IF (PEDANTIC)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_warnings}")
ELSE (MSVC)
# add warnings via flags (not as definitions as on Mac -Wall can not be overridden per language )
SET(_warnings "-Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Werror")
SET(_warnings "-Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing")
SET(WERROR FALSE CACHE BOOL "Treat build warnings as errors.")
IF (WERROR)
SET(_warnings "${_warnings} -Werror")
ENDIF(WERROR)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_warnings}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_warnings}")

0 comments on commit 351eb57

Please sign in to comment.
You can’t perform that action at this time.