From: Ian Jackson Date: Wed, 25 May 2011 20:00:36 +0000 (+0100) Subject: cleanup: add many compiler warning options X-Git-Tag: v0.2.0~91 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=secnet.git;a=commitdiff_plain;h=18ca0b4428846396356378dfb5949bbc3839a3be cleanup: add many compiler warning options 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 Signed-off-by: Ian Jackson --- diff --git a/Makefile.in b/Makefile.in index ed11d9b..dd94837 100644 --- a/Makefile.in +++ b/Makefile.in @@ -34,7 +34,12 @@ INSTALL_PROGRAM:=@INSTALL_PROGRAM@ # 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@