]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: disable FAIL_ON_WARNINGS for rocksdb
authorKefu Chai <kchai@redhat.com>
Sat, 9 Dec 2017 12:18:39 +0000 (20:18 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 11 Dec 2017 06:09:45 +0000 (14:09 +0800)
otherwise -Werror=implicit-fallthrough will fail the build with GCC-7

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/BuildRocksDB.cmake

index d62f7458058ee9e8943a1b2675a6144ab2e1f50e..8e0ad577887a5c5b08915adfbf51aba1c2c0e955 100644 (file)
@@ -17,10 +17,7 @@ function(do_build_rocksdb)
   list(APPEND ROCKSDB_CMAKE_ARGS -DPORTABLE=ON)
   list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_AR=${CMAKE_AR})
   list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})
-
-  if (CMAKE_CXX_COMPILER_ID STREQUAL Clang)
-    list(APPEND ROCKSDB_CMAKE_ARGS -DFAIL_ON_WARNINGS=OFF)
-  endif()
+  list(APPEND ROCKSDB_CMAKE_ARGS -DFAIL_ON_WARNINGS=OFF)
 
   # we use an external project and copy the sources to bin directory to ensure
   # that object files are built outside of the source tree.