chiark / gitweb /
turn on a bunch of warnings
[inn-innduct.git] / Makefile.in
index 38b4eec8b393ce312e73fe324e421954b23983fa..4f839a5a6f69ff76cae56b1274a052d0258f4205 100644 (file)
@@ -71,6 +71,14 @@ AUTOMAKE_OPTIONS = foreign
 
 INCLUDES = -I/usr/include/inn
 
+WERROR = -Werror
+CMDLINE_CFLAGS = 
+
+WARNINGS =     -Wall -Wformat=2 -Wno-format-zero-length        -Wshadow -Wpointer-arith -Wbad-function-cast    -Wwrite-strings -Wsign-compare -Wstrict-prototypes      -Wmissing-prototypes -Wmissing-declarations     -Wmissing-format-attribute -Wredundant-decls -Wnested-externs   -Wno-pointer-sign
+
+
+CFLAGS = @CFLAGS@ $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
+
 bin_PROGRAMS = innduct
 innduct_SOURCES = innduct.c __oop-read-copy.c
 innduct_LDADD = -L/usr/lib/news -lstorage -linn -lm -loop
@@ -90,7 +98,6 @@ LIBS = @LIBS@
 innduct_OBJECTS =  innduct.o __oop-read-copy.o
 innduct_DEPENDENCIES = 
 innduct_LDFLAGS = 
-CFLAGS = @CFLAGS@
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 CCLD = $(CC)
 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@