summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2014-11-11 13:19:06 +0000
committerSandrine Bailleux <sandrine.bailleux@arm.com>2014-11-24 14:02:07 +0000
commitea7a6067c984dc0ca5c61e11bc52928cca0a575a (patch)
treed5468a7a875970082ffc660a3f6b4f13a5c89c1e /Makefile
parent2e906443b4bc8ff8e74cfa4e690f4cae4b2b5c46 (diff)
Compile with '-Wno-error=unused-function' flag
Compiling with -Wno-error=unused-function flag allows to keep functions that are not used. Change-Id: Ia1022aa4bf4224fe2e492445a7a2b491efd6f390
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d70e6c1..de53878 100644
--- a/Makefile
+++ b/Makefile
@@ -154,9 +154,9 @@ ASFLAGS += -nostdinc -ffreestanding -Wa,--fatal-warnings \
-mgeneral-regs-only -D__ASSEMBLY__ \
${DEFINES} ${INCLUDES}
CFLAGS += -nostdinc -pedantic -ffreestanding -Wall \
- -Werror -Wmissing-include-dirs \
- -mgeneral-regs-only -std=c99 -c -Os \
- ${DEFINES} ${INCLUDES}
+ -Werror -Wno-error=unused-function \
+ -Wmissing-include-dirs -mgeneral-regs-only \
+ -std=c99 -c -Os ${DEFINES} ${INCLUDES}
CFLAGS += -ffunction-sections -fdata-sections
LDFLAGS += --fatal-warnings -O1