From 6398d3a65277a2ebed085ad9deef15fea6f4ed09 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 12 Feb 2013 11:39:32 -0800 Subject: [PATCH] Makefile: turn on warnings about missing prototypes Catches missing, dead code and also places where function should be static. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6ba36e8d..d4eed713 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,9 @@ CC = gcc HOSTCC = gcc DEFINES += -D_GNU_SOURCE CCOPTS = -O2 -WFLAGS = -Wall -Wstrict-prototypes -Werror +WFLAGS := -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes +WFLAGS += -Wmissing-declarations -Wold-style-definition + CFLAGS = $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) YACCFLAGS = -d -t -v -- 2.39.5