From: Josh Triplett Date: Sun, 15 Nov 2009 22:38:47 +0000 (-0800) Subject: Makefile: Add -Wmising-prototypes to HOSTCFLAGS X-Git-Tag: v2.6.32-rc8~33^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25583d4b5aa2c9aa5ed03ecc2ce73f3922714495;p=platform%2Fkernel%2Flinux-stable.git 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 --- diff --git a/Makefile b/Makefile index 3267915..ef8cce7 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.