[dpdk-dev] [PATCH 1/2] net/octeontx2: check compiler flag before use
Bruce Richardson
bruce.richardson at intel.com
Fri Jan 24 16:37:54 CET 2020
Rather than assuming all compilers support the -flax-vector-extensions
flag, we should test this before using it, thereby potentially avoiding
warnings.
Cc: jerinj at marvell.com
Signed-off-by: Bruce Richardson <bruce.richardson at intel.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
More information about the dev
mailing list