From 39ad2f39156e99a5de44ce0b2e1efda8771934ec Mon Sep 17 00:00:00 2001 From: Yann Gautier <yann.gautier@st.com> Date: Tue, 10 Nov 2020 15:09:55 +0100 Subject: [PATCH] stm32mp1: Add sign-compare warning Add -Wsign-compare to TF_CFLAGS to check signedness comparison during STM32MP1 platform compilation. Change-Id: I4cada49622f44258d3e0da4560a566de9c7d54b3 Signed-off-by: Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/183876 Reviewed-by: Lionel DEBIEVE <lionel.debieve@st.com> Reviewed-by: CIBUILD <smet-aci-builds@lists.codex.cro.st.com> --- plat/st/stm32mp1/platform.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plat/st/stm32mp1/platform.mk b/plat/st/stm32mp1/platform.mk index 29bed9cea..127b8604e 100644 --- a/plat/st/stm32mp1/platform.mk +++ b/plat/st/stm32mp1/platform.mk @@ -42,6 +42,8 @@ ifeq ($(AARCH32_SP),sp_min) TF_CFLAGS += -mfloat-abi=soft endif +TF_CFLAGS += -Wsign-compare + # Not needed for Cortex-A7 WORKAROUND_CVE_2017_5715:= 0 -- GitLab