make: Update CFLAGS to for -Werror.
authorTony Breeds <tony@bakeyournoodle.com>
Tue, 18 Oct 2011 00:52:47 +0000 (11:52 +1100)
committerTony Breeds <tony@bakeyournoodle.com>
Tue, 18 Oct 2011 04:11:10 +0000 (15:11 +1100)
Should stop warnings creeping in.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Makefile

index bff8ffe..04c03ab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,7 @@ YBCFLAGS += -DVERSION="\"${VERSION}${VERSIONEXTRA}\""
 YBCFLAGS += -DTEXTADDR=$(TEXTADDR) -DDEBUG=$(DEBUG)
 YBCFLAGS += -DMALLOCADDR=$(MALLOCADDR) -DMALLOCSIZE=$(MALLOCSIZE)
 YBCFLAGS += -DKERNELADDR=$(KERNELADDR)
+YBCFLAGS += -Werror -fdiagnostics-show-option
 YBCFLAGS += -I ./include
 
 ifeq ($(CONFIG_COLOR_TEXT),y)
@@ -72,6 +73,7 @@ LLIBS = -lext2fs
 # For compiling userland utils
 #
 UCFLAGS = -Os $(CFLAGS) -Wall -I/usr/include
+UCFLAGS += -Werror -fdiagnostics-show-option
 
 # For compiling build-tools that run on the host.
 #