From: Jan Viktorin Date: Mon, 2 Nov 2015 23:47:26 +0000 (+0100) Subject: mk: ignore alignment errors for ARMv7 X-Git-Tag: spdx-start~8043 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=79fa5c2a9992f5fdef2cd7cb4e76704940699fbc;p=dpdk.git mk: ignore alignment errors for ARMv7 There several issues with alignment when compiling for ARMv7. They are not considered to be fatal (ARMv7 supports unaligned access of 32b words), so we just leave them as warnings. They should be solved later, however. Signed-off-by: Jan Viktorin Signed-off-by: Vlastimil Kosar Acked-by: David Marchand --- diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk index 0f51c66633..c2c5255728 100644 --- a/mk/toolchain/gcc/rte.vars.mk +++ b/mk/toolchain/gcc/rte.vars.mk @@ -77,6 +77,12 @@ WERROR_FLAGS += -Wcast-align -Wnested-externs -Wcast-qual WERROR_FLAGS += -Wformat-nonliteral -Wformat-security WERROR_FLAGS += -Wundef -Wwrite-strings +# There are many issues reported for ARMv7 architecture +# which are not necessarily fatal. Report as warnings. +ifeq ($(CONFIG_RTE_ARCH_ARMv7),y) +WERROR_FLAGS += -Wno-error=cast-align +endif + # process cpu flags include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk