From: Andre Noll Date: Tue, 7 Jun 2016 14:23:36 +0000 (+0200) Subject: build: Add two more warning options. X-Git-Tag: v0.1.7~9 X-Git-Url: http://git.tuebingen.mpg.de/dss.git/log?p=dss.git;a=commitdiff_plain;h=1c6346c95e20aaff69e27ecb6deacbd496000dca build: Add two more warning options. Both -Wunused-parameter and -Wshadow were added to gcc long ago. In particular gcc-4.6.3, which ships with Ubuntu-12.04, supports them. It should thus be safe to enable both warnings unconditionally. --- diff --git a/Makefile b/Makefile index 3c00ce4..8adb38a 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,9 @@ CFLAGS += -Wformat-security CFLAGS += -Werror-implicit-function-declaration CFLAGS += -Wmissing-format-attribute CFLAGS += -Wunused-macros +CFLAGS += -Wunused-parameter CFLAGS += -Wbad-function-cast +CFLAGS += -Wshadow Makefile.deps: $(wildcard *.c *.h) gcc -MM -MG *.c > $@