aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2020-05-19 18:31:08 -0700
committerAnuj Mittal <anuj.mittal@intel.com>2020-05-21 09:15:07 +0800
commit238b8772ddaeb9819703eb797e8dc7e811b6287b (patch)
tree4fbdac9be9d9b18d8406ea0d391d1d622a6932d3
parent2b077a7ece9b4f2b9c5b3586149b4eef0e383e3e (diff)
downloadmeta-dpdk-238b8772ddaeb9819703eb797e8dc7e811b6287b.tar.gz
meta-dpdk-238b8772ddaeb9819703eb797e8dc7e811b6287b.tar.bz2
meta-dpdk-238b8772ddaeb9819703eb797e8dc7e811b6287b.zip
dpdk: fix compile failure on gcc10
Since oe-core upgraded gcc to 10.1, there is a failure ... |path_to_dpdk/19.11.1-r0/git/examples/ipsec-secgw/ipsec_process.c:131:34: error: 'grp.m' may be used uninitialized in this function [-Werror=maybe-uninitialized] | 131 | grp[n].cnt = pkts + i - grp[n].m; ... Add option `-Wno-error=maybe-uninitialized' to workaround Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--recipes-extended/dpdk/dpdk.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index c8376a4..06c98ae 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -62,6 +62,9 @@ DPDK_RTE_TARGET_x86 = "i686-native-linuxapp-gcc"
DPDK_RTE_TARGET_aarch64 = "arm64-${DPDK_TARGET_MACH}-linuxapp-gcc"
export RTE_TARGET = "${DPDK_RTE_TARGET}"
+# Workaround failure on gcc10
+TOOLCHAIN_OPTIONS += "-Wno-error=maybe-uninitialized"
+
CONFIG_NAME = "common_linux"
TEST_DIR = "test"