Re: [PATCH] net/ice/base: allow array bounds warnings

Bruce Richardson <[email protected]>
Newsgroups org.dpdk.dev
Message-ID <[email protected]>
On Thu, Aug 13, 2026 at 01:48:12PM +0200, Morten Brørup wrote:
> > From: Bruce Richardson [mailto:[email protected]]
> > Sent: Thursday, 13 August 2026 13.15
> > 
> > Since there are no zero-length arrays in the base code any more, remove
> > the -Wno-array-bounds build flag.
> > 
> > Signed-off-by: Bruce Richardson <[email protected]>
> > ---
> >  drivers/net/intel/ice/base/meson.build | 5 -----
> >  1 file changed, 5 deletions(-)
> > 
> > diff --git a/drivers/net/intel/ice/base/meson.build
> > b/drivers/net/intel/ice/base/meson.build
> > index fd079c41cf..da961f0752 100644
> > --- a/drivers/net/intel/ice/base/meson.build
> > +++ b/drivers/net/intel/ice/base/meson.build
> > @@ -44,11 +44,6 @@ else
> >      ]
> >  endif
> > 
> > -# Bugzilla ID: 678
> > -if (toolchain == 'gcc' and cc.version().version_compare('>=11.0.0'))
> > -    error_cflags += ['-Wno-array-bounds']
> > -endif
> > -
> 
> Good catch!
> Consequential workarounds like this are often overlooked when the workaround is not necessary anymore.
> 
> Patchwork should have a "fixed/workaround" state for tracking workarounds, so they can be properly cleaned up like this.
> The root cause has been fixed, so by removing this last detail of the workaround the bug is truly "fixed/resolved".
> 
> Acked-by: Morten Brørup <[email protected]>
> 
Applied to dpdk-next-net-intel.
/Bruce
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.