summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2007-07-15 23:41:38 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 09:05:50 -0700
commit94bed2a9c4ae980838003f5d32681eef794ecc28 (patch)
tree5f8125abe6044613db10ca59f04ad38321893a0e /Makefile
parentcc2ea416b2aa04d0c34ff2281a23dae5b76b7b3b (diff)
downloadlinux-stable-94bed2a9c4ae980838003f5d32681eef794ecc28.tar.gz
linux-stable-94bed2a9c4ae980838003f5d32681eef794ecc28.tar.bz2
linux-stable-94bed2a9c4ae980838003f5d32681eef794ecc28.zip
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 <davej@redhat.com> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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)