patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] build: fix meson build when gcc >= 10.0
@ 2022-06-07  2:56 wenxuanx.wu
  2022-06-07 10:52 ` Thomas Monjalon
  0 siblings, 1 reply; 7+ messages in thread
From: wenxuanx.wu @ 2022-06-07  2:56 UTC (permalink / raw)
  To: bruce.richardson, dev; +Cc: Wenxuan Wu, stable

From: Wenxuan Wu <wenxuanx.wu@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@dpdk.org

Signed-off-by: Wenxuan Wu <wenxuanx.wu@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


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH] build: fix meson build when gcc >= 10.0
@ 2022-06-07  2:55 wenxuanx.wu
  0 siblings, 0 replies; 7+ messages in thread
From: wenxuanx.wu @ 2022-06-07  2:55 UTC (permalink / raw)
  To: bruce.richardson; +Cc: Wenxuan Wu, stable

From: Wenxuan Wu <wenxuanx.wu@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@dpdk.org

Signed-off-by: Wenxuan Wu <wenxuanx.wu@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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-08  3:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07  2:56 [PATCH] build: fix meson build when gcc >= 10.0 wenxuanx.wu
2022-06-07 10:52 ` Thomas Monjalon
2022-06-07 15:09   ` Stephen Hemminger
2022-06-07 15:13     ` David Marchand
2022-06-07 15:25       ` Stephen Hemminger
2022-06-08  3:27   ` Wu, WenxuanX
  -- strict thread matches above, loose matches on Subject: below --
2022-06-07  2:55 wenxuanx.wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).