DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning"
@ 2024-10-11 17:57 Stephen Hemminger
  2024-10-11 18:57 ` Morten Brørup
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stephen Hemminger @ 2024-10-11 17:57 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger, Bruce Richardson

The zero length array warning can be re-enabled.
The zero length marker fields are now removed by
commit 9e152e674c77 ("mbuf: remove marker fields")
in DPDK 24.03.

This reverts commit cfacbcb5a23bc26cb913528c372adddabbb33ca1.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 config/meson.build | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/config/meson.build b/config/meson.build
index 8c8b019c25..38f25f9ce3 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -330,10 +330,7 @@ warning_flags = [
         '-Wno-packed-not-aligned',
         '-Wno-missing-field-initializers',
 ]
-if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0')
-# FIXME: Bugzilla 396
-    warning_flags += '-Wno-zero-length-bounds'
-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!!
     warning_flags += '-Wno-pointer-to-int-cast'
-- 
2.45.2


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

* RE: [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning"
  2024-10-11 17:57 [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning" Stephen Hemminger
@ 2024-10-11 18:57 ` Morten Brørup
  2024-10-14  7:58 ` Bruce Richardson
  2024-10-14  9:33 ` Kevin Traynor
  2 siblings, 0 replies; 5+ messages in thread
From: Morten Brørup @ 2024-10-11 18:57 UTC (permalink / raw)
  To: Stephen Hemminger, dev; +Cc: Bruce Richardson

More warnings enabled is always good.
And even better when the code builds without those warnings. :-)

Acked-by: Morten Brørup <mb@smartsharesystems.com>


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

* Re: [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning"
  2024-10-11 17:57 [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning" Stephen Hemminger
  2024-10-11 18:57 ` Morten Brørup
@ 2024-10-14  7:58 ` Bruce Richardson
  2024-10-17 17:52   ` Thomas Monjalon
  2024-10-14  9:33 ` Kevin Traynor
  2 siblings, 1 reply; 5+ messages in thread
From: Bruce Richardson @ 2024-10-14  7:58 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev

On Fri, Oct 11, 2024 at 10:57:10AM -0700, Stephen Hemminger wrote:
> The zero length array warning can be re-enabled.
> The zero length marker fields are now removed by
> commit 9e152e674c77 ("mbuf: remove marker fields")
> in DPDK 24.03.
> 
> This reverts commit cfacbcb5a23bc26cb913528c372adddabbb33ca1.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

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

* Re: [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning"
  2024-10-11 17:57 [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning" Stephen Hemminger
  2024-10-11 18:57 ` Morten Brørup
  2024-10-14  7:58 ` Bruce Richardson
@ 2024-10-14  9:33 ` Kevin Traynor
  2 siblings, 0 replies; 5+ messages in thread
From: Kevin Traynor @ 2024-10-14  9:33 UTC (permalink / raw)
  To: Stephen Hemminger, dev; +Cc: Bruce Richardson

On 11/10/2024 18:57, Stephen Hemminger wrote:
> The zero length array warning can be re-enabled.
> The zero length marker fields are now removed by
> commit 9e152e674c77 ("mbuf: remove marker fields")
> in DPDK 24.03.
> 
> This reverts commit cfacbcb5a23bc26cb913528c372adddabbb33ca1.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>  config/meson.build | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 

Acked-by: Kevin Traynor <ktraynor@redhat.com>


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

* Re: [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning"
  2024-10-14  7:58 ` Bruce Richardson
@ 2024-10-17 17:52   ` Thomas Monjalon
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2024-10-17 17:52 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev, Bruce Richardson

14/10/2024 09:58, Bruce Richardson:
> On Fri, Oct 11, 2024 at 10:57:10AM -0700, Stephen Hemminger wrote:
> > The zero length array warning can be re-enabled.
> > The zero length marker fields are now removed by
> > commit 9e152e674c77 ("mbuf: remove marker fields")
> > in DPDK 24.03.
> > 
> > This reverts commit cfacbcb5a23bc26cb913528c372adddabbb33ca1.
> > 
> > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> > ---
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied, thanks.



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

end of thread, other threads:[~2024-10-17 17:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-11 17:57 [PATCH] Revert "build: disable gcc 10 zero-length-bounds warning" Stephen Hemminger
2024-10-11 18:57 ` Morten Brørup
2024-10-14  7:58 ` Bruce Richardson
2024-10-17 17:52   ` Thomas Monjalon
2024-10-14  9:33 ` Kevin Traynor

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).