From: Dave Jones Date: Mon, 16 Jul 2007 06:41:38 +0000 (-0700) Subject: Add -Werror-implicit-function-declaration X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=94bed2a9c4ae980838003f5d32681eef794ecc28;p=openwrt%2Fstaging%2Fblogic.git Add -Werror-implicit-function-declaration Add -Werror-implicit-function-declaration This makes builds fail sooner if something is implicitly defined instead of having to wait half an hour for it to fail at the linking stage. Signed-off-by: Dave Jones Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Makefile b/Makefile index de4f8f7d396c..ddbfcac299c1 100644 --- a/Makefile +++ b/Makefile @@ -313,7 +313,8 @@ LINUXINCLUDE := -Iinclude \ CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ - -fno-strict-aliasing -fno-common + -fno-strict-aliasing -fno-common \ + -Werror-implicit-function-declaration AFLAGS := -D__ASSEMBLY__ # Read KERNELRELEASE from include/config/kernel.release (if it exists)