]> git.ozlabs.org Git - yaboot.git/blobdiff - Makefile
make: Update CFLAGS to for -Werror.
[yaboot.git] / Makefile
index bff8ffe82cd738716cedf233702b5f89ad9f7452..04c03ab202ae3b50b0f79bed1549cf338ab7df7a 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.
 #