From: Stephen Hemminger Date: Tue, 12 Feb 2013 19:39:32 +0000 (-0800) Subject: Makefile: turn on warnings about missing prototypes X-Git-Tag: v3.8.0~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6398d3a65277a2ebed085ad9deef15fea6f4ed09;p=thirdparty%2Fiproute2.git Makefile: turn on warnings about missing prototypes Catches missing, dead code and also places where function should be static. --- diff --git a/Makefile b/Makefile index 6ba36e8db..d4eed713c 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