From: Chris Metcalf Date: Sat, 18 Feb 2017 01:52:28 +0000 (-0500) Subject: mk: generalize strict alignment warning handling X-Git-Tag: spdx-start~4452 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6433c19105e8e04f72d314a2004bc16ce516b030;p=dpdk.git mk: generalize strict alignment warning handling 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 --- diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk index ff70f3d9f6..5caa60004c 100644 --- a/mk/toolchain/gcc/rte.vars.mk +++ b/mk/toolchain/gcc/rte.vars.mk @@ -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