]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run-make-check: pass -Werror when compiling C++ code 42785/head
authorKefu Chai <kchai@redhat.com>
Mon, 16 Aug 2021 09:36:30 +0000 (17:36 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 16 Aug 2021 09:37:01 +0000 (17:37 +0800)
to raise the bar so we can identify potential issues earlier.

Signed-off-by: Kefu Chai <kchai@redhat.com>
run-make-check.sh

index 1e163509d8e63425fd089b2f151bb53f9a5ae4c8..7d64f968e121d0c00a89eabe518a9b3047639d46 100755 (executable)
@@ -82,6 +82,7 @@ function main() {
     # Init defaults after deps are installed.
     local cmake_opts
     cmake_opts+=" -DCMAKE_CXX_COMPILER=$cxx_compiler -DCMAKE_C_COMPILER=$c_compiler"
+    cmake_opts+=" -DCMAKE_CXX_FLAGS_DEBUG=-Werror"
     cmake_opts+=" -DENABLE_GIT_VERSION=OFF"
     cmake_opts+=" -DWITH_GTEST_PARALLEL=ON"
     cmake_opts+=" -DWITH_FIO=ON"