Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Treat warnings for switch as errors

Change-Id: I03c67eaaa8984c4c8529ef096c5bb34005c5dfbe
Reviewed-on: http://review.couchbase.org/54968
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chris Hillery <ceej@couchbase.com>
  • Loading branch information...
commit 3874a072646a7e26619b8fd0b5140598538a2ffc 1 parent fb4a511
@trondn trondn authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 cmake/Modules/CouchbaseClangxxOptions.cmake
View
4 cmake/Modules/CouchbaseClangxxOptions.cmake
@@ -10,6 +10,10 @@ SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -DNDEBUG -g")
IF ("${ENABLE_WERROR}" STREQUAL "YES")
SET(CB_CLANGXX_WERROR "-Werror")
+ELSE()
+ # We've fixed all occurrences for the following warnings and don't want
+ # any new ones to appear
+ SET(CB_CLANGXX_WERROR "-Werror=switch")
ENDIF()
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 3.1)
Please sign in to comment.
Something went wrong with that request. Please try again.