mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
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
This commit is contained in:
parent
0af6d64df3
commit
e22fb91e31
2 changed files with 3 additions and 3 deletions
4
Makefile
4
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}
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
* The following compilation error is triggered if the assertion fails:
|
||||
* "error: size of array 'msg' is negative"
|
||||
******************************************************************************/
|
||||
#define CASSERT(cond, msg) typedef char msg[(cond) ? 0 : -1]
|
||||
#define CASSERT(cond, msg) typedef char msg[(cond) ? 1 : -1]
|
||||
|
||||
/******************************************************************************
|
||||
* Opcode passed in x0 to tell next EL that we want to run an image.
|
||||
|
|
Loading…
Add table
Reference in a new issue