diff options
author | Josh Triplett <josh@joshtriplett.org> | 2009-11-15 17:38:47 -0500 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2009-11-15 18:01:42 -0500 |
commit | 25583d4b5aa2c9aa5ed03ecc2ce73f3922714495 (patch) | |
tree | 91869e7e2678b9c1b917c89f20bd07cef001b3c8 /Makefile | |
parent | e8e63cbf9a339c972eeb5ccf8777c8067bdfd869 (diff) |
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 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -221,7 +221,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ | |||
221 | 221 | ||
222 | HOSTCC = gcc | 222 | HOSTCC = gcc |
223 | HOSTCXX = g++ | 223 | HOSTCXX = g++ |
224 | HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer | 224 | HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer |
225 | HOSTCXXFLAGS = -O2 | 225 | HOSTCXXFLAGS = -O2 |
226 | 226 | ||
227 | # Decide whether to build built-in, modular, or both. | 227 | # Decide whether to build built-in, modular, or both. |