chiark / gitweb /
turn on a bunch of warnings
[innduct.git] / Makefile.am
index 27835cd98603754143a59902599fd6eeddd90fcf..e9a82befde301def10ea6216aee003bb12a4e3f0 100644 (file)
@@ -2,6 +2,19 @@ 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