From e1fe11875ba629483314e656b6f90bf130a8bfd1 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Wed, 21 Apr 2021 18:37:23 +0200 Subject: [PATCH] autobuild: enable -Wno-stringop-overflow for DPDK builds only for GCC > 10 Use -Wno-stringop-overflow only for GCC > 10. Change made to use the same condition as in dpdkbuild/Makefile. Signed-off-by: Karol Latecki Change-Id: I6a396e250807f46720ff5dcaf21f13d802404a1b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7537 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Tomasz Zawadzki --- autobuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autobuild.sh b/autobuild.sh index 5f3ef533a..4edde9691 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -75,6 +75,10 @@ function build_native_dpdk() { dpdk_cflags+=" -Werror" fi + if [[ $gcc_version -ge 10 ]]; then + dpdk_cflags+=" -Wno-stringop-overflow" + fi + # the drivers we use # net/i40e driver is not really needed by us, but it's built as a workaround # for DPDK issue: https://bugs.dpdk.org/show_bug.cgi?id=576 @@ -120,7 +124,6 @@ function build_native_dpdk() { cd $external_dpdk_base_dir if [ "$(uname -s)" = "Linux" ]; then - dpdk_cflags+=" -Wno-stringop-overflow" # Fix for freeing device if not kernel driver configured. # TODO: Remove once this is merged in upstream DPDK if grep "20.08.0" $external_dpdk_base_dir/VERSION; then