aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarry Liebel <Harry.Liebel@arm.com>2014-01-03 14:18:15 +0000
committerDan Handley <dan.handley@arm.com>2014-01-17 10:27:52 +0000
commite22fb91e3145ab95e44c2ad291b330ae79847893 (patch)
treea401478cc02ca341e2051fe06229c5e0ef3beafc /Makefile
parent0af6d64df3dc2633058ad481fb5c64c09945cf60 (diff)
downloadarm-trusted-firmware-e22fb91e3145ab95e44c2ad291b330ae79847893.tar.gz
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d3951ea..75a4022 100644
--- a/Makefile
+++ b/Makefile
@@ -98,8 +98,8 @@ INCLUDES += -Ilib/include/ -Iinclude/aarch64/ -Iinclude/ \
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}