summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2026-09-01 18:55:25 +0200
committerYann Gautier <yann.gautier@st.com>2026-09-07 13:41:30 +0200
commitd7135a7214e49c6364ba518cdac343aa595a8db8 (patch)
treeb512a0020a2a80c1d7bdb2f13051fad7d6d2081f
parentccb3eb9aefd8b2f6d762366c4c7ba0a2e81b720e (diff)
downloadarm-trusted-firmware-d7135a7214e49c6364ba518cdac343aa595a8db8.tar.gz
arm-trusted-firmware-d7135a7214e49c6364ba518cdac343aa595a8db8.zip
feat(st): enable some warning flags
Enable -Wundef, -Wold-style-definition and -Wmissing-prototypes. They should be enabled globally, but there is too much work for the time being. At least having them enabled for a platform should avoid having new instances of those warnings. Change-Id: I716e05392972d2297d86aa3383678af7a9edeb45 Signed-off-by: Yann Gautier <yann.gautier@st.com>
-rw-r--r--plat/st/common/common.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/plat/st/common/common.mk b/plat/st/common/common.mk
index 7d6333364..9c4976d93 100644
--- a/plat/st/common/common.mk
+++ b/plat/st/common/common.mk
@@ -32,6 +32,11 @@ ifeq ($(findstring clang,$(notdir $(CC))),)
TF_CFLAGS += -Wformat-signedness
endif
+# TODO: those flags should be removed from here when they are enabled in cflags.mk
+BL_FLAGS += -Wundef
+BL_FLAGS += -Wold-style-definition
+BL_FLAGS += -Wmissing-prototypes
+
# Boot devices
STM32MP_EMMC ?= 0
STM32MP_SDMMC ?= 0