]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: disable -Werror when building seastar
authorKefu Chai <kchai@redhat.com>
Thu, 21 Mar 2019 08:23:04 +0000 (16:23 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 21 Mar 2019 09:04:38 +0000 (17:04 +0800)
when building seastar with a recent fmt, fmt complains:

src/fmt/include/fmt/time.h:13:2: error: #warning fmt/time.h is
deprecated, use fmt/chrono.h instead [-Werror=cpp]
 #warning fmt/time.h is deprecated, use fmt/chrono.h instead
  ^~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 39fbc1c336a2a1ebd1219fbb0b330ef86530ed5f..a0e1a5229b3ba8b8c13627b1c168d5ed2e069a65 100644 (file)
@@ -297,7 +297,7 @@ if(WITH_SEASTAR)
   endmacro ()
   set(Seastar_HWLOC OFF CACHE BOOL "" FORCE)
   set(Seastar_STD_OPTIONAL_VARIANT_STRINGVIEW ON CACHE BOOL "" FORCE)
-  set(Seastar_CXX_FLAGS "-Wno-sign-compare;-Wno-attributes;-Wno-pessimizing-move;-Wno-address-of-packed-member" CACHE STRING "" FORCE)
+  set(Seastar_CXX_FLAGS "-Wno-error;-Wno-sign-compare;-Wno-attributes;-Wno-pessimizing-move;-Wno-address-of-packed-member" CACHE STRING "" FORCE)
   add_subdirectory(seastar)
   # create the directory so cmake won't complain when looking at the imported
   # target: Seastar exports this directory created at build-time