[PATCH] build: fix meson build when gcc >= 10.0
wenxuanx.wu at intel.com
wenxuanx.wu at intel.com
Tue Jun 7 04:56:52 CEST 2022
From: Wenxuan Wu <wenxuanx.wu at intel.com>
GCC version greater than 10.0, with compile option -O2, several warnings info would appear,
this fix omitted these warnings.
Fixes: cfacbcb5a23b ("build: disable gcc 10 zero-length-bounds warning")
Cc: stable at dpdk.org
Signed-off-by: Wenxuan Wu <wenxuanx.wu at intel.com>
---
config/meson.build | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/config/meson.build b/config/meson.build
index 7134e80e8d..97f0ea6cca 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -273,7 +273,12 @@ warning_flags = [
]
if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0')
# FIXME: Bugzilla 396
- warning_flags += '-Wno-zero-length-bounds'
+ warning_flags += [
+ '-Wno-zero-length-bounds',
+ '-Wno-stringop-overflow',
+ '-Wno-array-bounds',
+ '-Wno-format-overflow',
+ ]
endif
if not dpdk_conf.get('RTE_ARCH_64')
# for 32-bit, don't warn about casting a 32-bit pointer to 64-bit int - it's fine!!
--
2.25.1
More information about the stable
mailing list