From 1c6346c95e20aaff69e27ecb6deacbd496000dca Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 7 Jun 2016 16:23:36 +0200 Subject: [PATCH] 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. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) 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 > $@ -- 2.39.2