On Fri, Jan 24, 2020 at 9:10 PM Bruce Richardson <bruce.richard...@intel.com> wrote: > > Rather than assuming all compilers support the -flax-vector-extensions > flag, we should test this before using it, thereby potentially avoiding > warnings. > > Cc: jer...@marvell.com > > Signed-off-by: Bruce Richardson <bruce.richard...@intel.com>
Acked-by: Jerin Jacob <jer...@marvell.com> > --- > drivers/net/octeontx2/meson.build | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/net/octeontx2/meson.build > b/drivers/net/octeontx2/meson.build > index fad3076a3..bde19678f 100644 > --- a/drivers/net/octeontx2/meson.build > +++ b/drivers/net/octeontx2/meson.build > @@ -26,9 +26,7 @@ sources = files('otx2_rx.c', > > deps += ['bus_pci', 'common_octeontx2', 'mempool_octeontx2'] > > -cflags += ['-flax-vector-conversions'] > - > -extra_flags = [] > +extra_flags = ['-flax-vector-conversions'] > # This integrated controller runs only on a arm64 machine, remove 32bit > warnings > if not dpdk_conf.get('RTE_ARCH_64') > extra_flags += ['-Wno-int-to-pointer-cast', > '-Wno-pointer-to-int-cast'] > -- > 2.20.1 >