From 6ab188ee6c99b1d9924b607d7e939d91e35014ec Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Fri, 28 Jun 2024 14:48:04 +0200 Subject: Makefile.mk: Use Walloc-size GCC option Change-Id: Ia26dcf097db125a5a734660d08d875459179241b Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/82734 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- Makefile.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.mk b/Makefile.mk index 1b658b58c2..7be4685eff 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -528,6 +528,7 @@ CFLAGS_common += -fno-pie CFLAGS_common += -Wstring-compare ifeq ($(CONFIG_COMPILER_GCC),y) CFLAGS_common += -Wold-style-declaration +CFLAGS_common += -Walloc-size # Don't add these GCC specific flags when running scan-build ifeq ($(CCC_ANALYZER_OUTPUT_FORMAT),) CFLAGS_common += -Wno-packed-not-aligned -- cgit v1.2.3