Build project with 'pedantic'
Tighten up ISO C standard checking. Fix 'CASSERT' implementation to
conform to C99 as opposed to GNU99 standard.
Change-Id: I58ddc61913617b66f11da5b6e3f7363136d5cf7d
diff --git a/Makefile b/Makefile
index d3951ea..75a4022 100644
--- a/Makefile
+++ b/Makefile
@@ -98,8 +98,8 @@
ASFLAGS += -nostdinc -ffreestanding -Wa,--fatal-warnings \
-D__ASSEMBLY__ ${INCLUDES}
-CFLAGS := -nostdinc -ffreestanding -Wall -Werror -std=c99 -c -Os \
- -DDEBUG=${DEBUG} ${INCLUDES} ${CFLAGS}
+CFLAGS := -nostdinc -pedantic -ffreestanding -Wall -Werror \
+ -std=c99 -c -Os -DDEBUG=${DEBUG} ${INCLUDES} ${CFLAGS}
LDFLAGS += --fatal-warnings -O1
BL1_LDFLAGS := -Map=${BL1_MAPFILE} --script ${BL1_LINKERFILE} --entry=${BL1_ENTRY_POINT}