]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: disable warnings using -Wno-everything 49403/head
authorKefu Chai <kchai@redhat.com>
Tue, 13 Dec 2022 07:14:20 +0000 (15:14 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 13 Dec 2022 07:18:03 +0000 (15:18 +0800)
we are not interested in the compiling warning when building
Boost, and even worse we don't want to fail the build because of
the warnings which default to error. and "-w" does not disable
them for us. see also the discussion at
https://reviews.llvm.org/D131307.

to fully disable the warnings, let's add -Wno-everything to the
cflags.

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

index af245075cf26288bcbc8bd707b9911e06e5229c1..8db3de95963443ebd167780723ee3064a19a846d 100644 (file)
@@ -108,7 +108,7 @@ function(do_build_boost root_dir version)
     "using ${toolset}"
     " : "
     " : ${CMAKE_CXX_COMPILER}"
-    " : <compileflags>-fPIC <compileflags>-w"
+    " : <compileflags>-fPIC <compileflags>-w <compileflags>-Wno-everything"
     " ;\n")
   if(with_python_version)
     find_package(Python3 ${with_python_version} QUIET REQUIRED