mk: generalize strict alignment warning handling
authorChris Metcalf <cmetcalf@mellanox.com>
Sat, 18 Feb 2017 01:52:28 +0000 (20:52 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Feb 2017 15:44:32 +0000 (16:44 +0100)
Rather than allowing just armv7 to have non-fatal strict alignment
cast warnings, generalize it to both strict alignment architectures,
armv7 and tile.

Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
mk/toolchain/gcc/rte.vars.mk

index ff70f3d..5caa600 100644 (file)
@@ -81,9 +81,9 @@ ifeq ($(RTE_DEVEL_BUILD),y)
 WERROR_FLAGS += -Werror
 endif
 
-# There are many issues reported for ARMv7 architecture
+# There are many issues reported for strict alignment architectures
 # which are not necessarily fatal. Report as warnings.
-ifeq ($(CONFIG_RTE_ARCH_ARMv7),y)
+ifeq ($(CONFIG_RTE_ARCH_STRICT_ALIGN),y)
 WERROR_FLAGS += -Wno-error=cast-align
 endif