Commit 6336b07a authored by Yann Gautier's avatar Yann Gautier
Browse files

Makefile: add a possibility to disable -Werror



Setting E=0 in the make command line disables -Werror in CPPFLAGS.
Signed-off-by: default avatarYann Gautier <yann.gautier@st.com>
parent 1b18c6c4
......@@ -226,8 +226,12 @@ else ifeq (${W},3)
WARNINGS := $(WARNING1) $(WARNING2) $(WARNING3)
endif
ifneq (${E},0)
ERRORS := -Werror
endif
CPPFLAGS = ${DEFINES} ${INCLUDES} ${MBEDTLS_INC} -nostdinc \
-Wmissing-include-dirs -Werror $(WARNINGS)
-Wmissing-include-dirs $(ERRORS) $(WARNINGS)
ASFLAGS += $(CPPFLAGS) $(ASFLAGS_$(ARCH)) \
-D__ASSEMBLY__ -ffreestanding \
-Wa,--fatal-warnings
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment