summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-06-28 14:48:04 +0200
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-07-01 11:31:36 +0000
commit6ab188ee6c99b1d9924b607d7e939d91e35014ec (patch)
tree955a83b4977cc1079c673bcbd4824938cfa8eaf8
parent2bca750f1085cfb46cb3efb554e889234ad61312 (diff)
Makefile.mk: Use Walloc-size GCC option
Change-Id: Ia26dcf097db125a5a734660d08d875459179241b Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82734 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
-rw-r--r--Makefile.mk1
1 files changed, 1 insertions, 0 deletions
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