The older version (e.g. version 7.4.0 ) of GNU C compiler for the armhf
architecture doesn't support the flag '-Wno-address-of-packed-member',
so remove this flag for aarch32.
Fixes: a385972c3675 ("mk: disable warning for packed member pointer")
Cc: [email protected]
Signed-off-by: Phil Yang <[email protected]>
Reviewed-by: Gavin Hu <[email protected]>
Tested-by: Joyce Kong <[email protected]>
---
mk/toolchain/gcc/rte.vars.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk
index 9fc7041..ec0cbbf 100644
--- a/mk/toolchain/gcc/rte.vars.mk
+++ b/mk/toolchain/gcc/rte.vars.mk
@@ -100,7 +100,9 @@ WERROR_FLAGS += -Wno-format-truncation
endif
# disable packed member unalign warnings
+ifneq ($(CONFIG_RTE_ARCH_ARM), y)
WERROR_FLAGS += -Wno-address-of-packed-member
+endif
export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
--
2.7.4