aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2013-11-20 11:50:48 +0000
committerDan Handley <dan.handley@arm.com>2013-11-27 15:45:04 +0000
commit3e850a84c94a5f1bc0141041ad32be94460716f7 (patch)
tree8031895a6f4345e0940a0af3212aea722e82fc86
parenteaaeece2b0f22958e3724020f4686aa9d635a1e0 (diff)
Treat compiler, assembler and linker warnings as errors
Change-Id: I56284ebf63bef99de1beb4fd86e2d8b6a7962ac0
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9a683f4..c2b258f 100644
--- a/Makefile
+++ b/Makefile
@@ -95,10 +95,10 @@ INCLUDES += -Ilib/include/ -Iinclude/aarch64/ -Iinclude/ \
-Iplat/fvp -Idrivers/power \
-Iarch/system/gic -Icommon/psci
-ASFLAGS += -D__ASSEMBLY__ $(INCLUDES)
-CFLAGS := -Wall -std=c99 -c -Os -DDEBUG=$(DEBUG) $(INCLUDES) ${CFLAGS}
+ASFLAGS += -Wa,--fatal-warnings -D__ASSEMBLY__ ${INCLUDES}
+CFLAGS := -Wall -Werror -std=c99 -c -Os -DDEBUG=${DEBUG} ${INCLUDES} ${CFLAGS}
-LDFLAGS += -O1
+LDFLAGS += --fatal-warnings -O1
BL1_LDFLAGS := -Map=${BL1_MAPFILE} --script ${BL1_LINKERFILE} --entry=${BL1_ENTRY_POINT}
BL2_LDFLAGS := -Map=${BL2_MAPFILE} --script ${BL2_LINKERFILE} --entry=${BL2_ENTRY_POINT}
BL31_LDFLAGS := -Map=${BL31_MAPFILE} --script ${BL31_LINKERFILE} --entry=${BL31_ENTRY_POINT}