]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
nautilus: cmake/BuildDPDK: ignore gcc8/9 warnings 30360/head
authorYuval Lifshitz <yuvalif@yahoo.com>
Thu, 12 Sep 2019 13:16:41 +0000 (16:16 +0300)
committerYuval Lifshitz <yuvalif@yahoo.com>
Tue, 24 Sep 2019 12:31:19 +0000 (15:31 +0300)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
Conflicts: cmake/modules/BuildDPDK.cmake
  this change is not cherry-picked from master, because master has
  picked up an updated SPDK which is in turn using a DPDK containing fixes like
  a385972c3370975b,  74f27710 and e5e193ac and a36b40dd. these changes either
  disables the"address-of-packed-member" warnings or addresses
  "error=stringop-truncation" warnings.

cmake/modules/BuildDPDK.cmake

index 12a831a8b10a68e053dbab157f4cc43eb4258085..fe4a0acf15f2c9c72b998f95f0e61be6399f1e40 100644 (file)
@@ -71,11 +71,13 @@ function(do_build_dpdk dpdk_dir)
       "\"${target}\" not listed in ${supported_targets}")
   endif()
 
+  set(EXTRA_CFLAGS "-Wno-unknown-warning-option -Wno-stringop-truncation -Wno-address-of-packed-member -fPIC")
+
   include(ExternalProject)
   ExternalProject_Add(dpdk-ext
     SOURCE_DIR ${CMAKE_SOURCE_DIR}/src/spdk/dpdk
     CONFIGURE_COMMAND $(MAKE) config O=${dpdk_dir} T=${target}
-    BUILD_COMMAND env CC=${CMAKE_C_COMPILER} $(MAKE) O=${dpdk_dir} EXTRA_CFLAGS=-fPIC
+    BUILD_COMMAND env CC=${CMAKE_C_COMPILER} $(MAKE) O=${dpdk_dir} EXTRA_CFLAGS=${EXTRA_CFLAGS}
     BUILD_IN_SOURCE 1
     INSTALL_COMMAND "true")
   ExternalProject_Add_Step(dpdk-ext patch-config