summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2009-11-15 23:38:47 +0100
committerJosh Triplett <josh@joshtriplett.org>2009-11-16 00:01:42 +0100
commit25583d4b5aa2c9aa5ed03ecc2ce73f3922714495 (patch)
tree91869e7e2678b9c1b917c89f20bd07cef001b3c8 /Makefile
parentoss: Mark loadhex static in hex2hex.c (diff)
downloadlinux-25583d4b5aa2c9aa5ed03ecc2ce73f3922714495.tar.xz
linux-25583d4b5aa2c9aa5ed03ecc2ce73f3922714495.zip
Makefile: Add -Wmising-prototypes to HOSTCFLAGS
Now that all host programs use static for all private functions and forward prototypes for all extern functions, add -Wmissing-prototypes to HOSTCFLAGS in the hopes of keeping it that way. All versions of GCC supported by the kernel handle -Wmissing-prototypes. Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to '')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 326791575b0a..ef8cce7ab546 100644
--- a/Makefile
+++ b/Makefile
@@ -221,7 +221,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
HOSTCC = gcc
HOSTCXX = g++
-HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
HOSTCXXFLAGS = -O2
# Decide whether to build built-in, modular, or both.