* added -Werror to motivate to kill warnings
authorBernd Petrovitsch <bernd@firmix.at>
Mon, 2 Apr 2007 22:44:09 +0000 (22:44 +0000)
committerBernd Petrovitsch <bernd@firmix.at>
Mon, 2 Apr 2007 22:44:09 +0000 (22:44 +0000)
Makefile.inc

index 32adc76..27cde27 100644 (file)
@@ -20,9 +20,14 @@ INCLUDES =   -Isrc -I$(TOPDIR)/src
 
 # add gcc warnings and optimizations if CFLAGS not set
 ifndef CFLAGS
-CFLAGS +=      -Wall -Wmissing-prototypes -Wstrict-prototypes \
-               -Wmissing-declarations -Wsign-compare
-CFLAGS +=      -O2 -g
+CFLAGS +=      -Wall
+CFLAGS +=      -Wmissing-prototypes
+CFLAGS +=      -Wstrict-prototypes
+CFLAGS +=      -Wmissing-declarations
+CFLAGS +=      -Wsign-compare
+CFLAGS +=      -O2
+CFLAGS +=      -g
+CFLAGS +=      -Werror
 endif
 
 ifdef OLSRD_PLUGIN