[EXT] [PATCH] net: fix build with -Wpedantic
Ali Alnubani
alialnu at nvidia.com
Thu Sep 29 09:07:20 CEST 2022
> -----Original Message-----
> From: Akhil Goyal <gakhil at marvell.com>
> Sent: Thursday, September 29, 2022 10:02 AM
> To: Ali Alnubani <alialnu at nvidia.com>; dev at dpdk.org
> Subject: RE: [EXT] [PATCH] net: fix build with -Wpedantic
>
> > Adds the __extension__ attribute to resolve the following warning
> > with gcc 4.8.5 on CentOS 7:
> > lib/net/rte_macsec.h:38:2: error: type of bit-field 'short_length' is
> > a GCC extension [-Werror=pedantic]
> >
> > Fixes: 0aaf097585a6 ("ethdev: add MACsec flow item")
> > Cc: gakhil at marvell.com
> >
> > Signed-off-by: Ali Alnubani <alialnu at nvidia.com>
> > ---
> > lib/net/rte_macsec.h | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/lib/net/rte_macsec.h b/lib/net/rte_macsec.h
> > index 9228ebd083..d0cd2f69ab 100644
> > --- a/lib/net/rte_macsec.h
> > +++ b/lib/net/rte_macsec.h
> > @@ -28,6 +28,7 @@ extern "C" {
> > /**
> > * MACsec Header (SecTAG)
> > */
> > +__extension__
>
> RTE_STD_C11 ??
Replacing the __extension__ attribute with RTE_STD_C11 doesn't resolve the build failure for me.
More information about the dev
mailing list