This is a set of warning options which are useful and IMO should be
enabled in secnet. Currently the code is not warning-clean to the
required standard; subsequent changes will fix the warnings.
Signed-off-by: Richard Kettlewell <richard@greenend.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
# Use -DHACKY_PARALLEL if you are compiling secnet for an extremely
# slow machine
#CFLAGS:=-Wall @WRITESTRINGS@ @CFLAGS@ -DHACKY_PARALLEL
# Use -DHACKY_PARALLEL if you are compiling secnet for an extremely
# slow machine
#CFLAGS:=-Wall @WRITESTRINGS@ @CFLAGS@ -DHACKY_PARALLEL
-CFLAGS:=-Wall @WRITESTRINGS@ @CFLAGS@
+CFLAGS:=-Wall @WRITESTRINGS@ @CFLAGS@ \
+ -W -Wno-unused \
+ -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes \
+ -Wmissing-declarations -Wnested-externs -Wredundant-decls \
+ -Wpointer-arith -Wformat=2 -Winit-self \
+ -Wswitch-enum -Wunused-variable -Wbad-function-cast
ALL_CFLAGS:=@DEFS@ -I$(srcdir) -I. $(CFLAGS)
CPPFLAGS:=@CPPFLAGS@
LDFLAGS:=@LDFLAGS@
ALL_CFLAGS:=@DEFS@ -I$(srcdir) -I. $(CFLAGS)
CPPFLAGS:=@CPPFLAGS@
LDFLAGS:=@LDFLAGS@