[PATCH] build: fix meson build when gcc >= 10.0
Wu, WenxuanX
wenxuanx.wu at intel.com
Wed Jun 8 05:27:11 CEST 2022
Hi Thomas,
> -----Original Message-----
> From: Thomas Monjalon <thomas at monjalon.net>
> Sent: 2022年6月7日 18:53
> To: Wu, WenxuanX <wenxuanx.wu at intel.com>
> Cc: Richardson, Bruce <bruce.richardson at intel.com>; dev at dpdk.org;
> stable at dpdk.org; david.marchand at redhat.com
> Subject: Re: [PATCH] build: fix meson build when gcc >= 10.0
>
> 07/06/2022 04:56, wenxuanx.wu at intel.com:
> > 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.
> [...]
> > # FIXME: Bugzilla 396
> > - warning_flags += '-Wno-zero-length-bounds'
> > + warning_flags += [
> > + '-Wno-zero-length-bounds',
> > + '-Wno-stringop-overflow',
> > + '-Wno-array-bounds',
> > + '-Wno-format-overflow',
>
> The compilers are reported warnings to help us having a better code.
> We should try to resolve the warnings, not hiding them.
>
Yeah, I can not agree more. Need to draw more attention to handle these warnings.
More information about the stable
mailing list