]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Makefile: turn on warnings about missing prototypes
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 12 Feb 2013 19:39:32 +0000 (11:39 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 12 Feb 2013 19:39:32 +0000 (11:39 -0800)
Catches missing, dead code and also places where function should be static.

Makefile

index 6ba36e8dbc4ddd700916b18d92abc0d536c9eb66..d4eed713cb8596a80471e65b8bdb0c3ba01f0fba 100644 (file)
--- 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