From: Kefu Chai Date: Tue, 13 Dec 2022 07:14:20 +0000 (+0800) Subject: cmake: disable warnings using -Wno-everything X-Git-Tag: v18.1.0~601^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=231ed5549bee0f97f389d245f8755629b19ce289;p=ceph.git cmake: disable warnings using -Wno-everything 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 --- diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index af245075cf2..8db3de95963 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -108,7 +108,7 @@ function(do_build_boost root_dir version) "using ${toolset}" " : " " : ${CMAKE_CXX_COMPILER}" - " : -fPIC -w" + " : -fPIC -w -Wno-everything" " ;\n") if(with_python_version) find_package(Python3 ${with_python_version} QUIET REQUIRED