mirror of
git://git.yoctoproject.org/meta-dpdk.git
synced 2025-07-19 21:09:04 +02:00
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>
This commit is contained in:
parent
2b077a7ece
commit
238b8772dd
|
@ -62,6 +62,9 @@ DPDK_RTE_TARGET_x86 = "i686-native-linuxapp-gcc"
|
||||||
DPDK_RTE_TARGET_aarch64 = "arm64-${DPDK_TARGET_MACH}-linuxapp-gcc"
|
DPDK_RTE_TARGET_aarch64 = "arm64-${DPDK_TARGET_MACH}-linuxapp-gcc"
|
||||||
export RTE_TARGET = "${DPDK_RTE_TARGET}"
|
export RTE_TARGET = "${DPDK_RTE_TARGET}"
|
||||||
|
|
||||||
|
# Workaround failure on gcc10
|
||||||
|
TOOLCHAIN_OPTIONS += "-Wno-error=maybe-uninitialized"
|
||||||
|
|
||||||
CONFIG_NAME = "common_linux"
|
CONFIG_NAME = "common_linux"
|
||||||
TEST_DIR = "test"
|
TEST_DIR = "test"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user