Build all user libraries with -Werror
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Dec 2016 18:46:04 +0000 (13:46 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Jan 2017 00:01:40 +0000 (19:01 -0500)
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
Makefile

index e7fe80a..56ec8b3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -393,7 +393,7 @@ export NOSTDINC_FLAGS XCC_TARGET_ROOT XCC_TARGET_LIB XCC_TARGET_INCLUDE
 export KBUILD_BUILTIN KBUILD_CHECKSRC
 
 CFLAGS_USER += -O2 -std=gnu99 -fno-stack-protector -fgnu89-inline \
-               -Wsystem-headers
+               -Wsystem-headers -Werror
 CXXFLAGS_USER += -O2
 CFLAGS_USER_LIBS += -fPIC -static -fno-omit-frame-pointer -g