summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2008-12-28 00:38:44 +0300
committerSam Ravnborg <sam@ravnborg.org>2009-01-02 22:43:24 +0300
commit80a7d1d991e35b0370c0396f36f6a076869a6bac (patch)
tree1b0d52856aea9072dbcbe27746303106b3c20dda /Makefile
parent4307184f2b9240d0443bdf944c7b9eac044fe67b (diff)
downloadlinux-80a7d1d991e35b0370c0396f36f6a076869a6bac.tar.xz
kbuild: disable sparse warning "returning void-valued expression"
The sparse warning -Wreturn-void ("returning void-valued expression") is off by default, but it is enabled with -Wall, so add -Wno-return-void to CHECKFLAGS to disable it. Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d13a9694e159..f9006663f01e 100644
--- a/Makefile
+++ b/Makefile
@@ -321,7 +321,8 @@ KALLSYMS = scripts/kallsyms
PERL = perl
CHECK = sparse
-CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(CF)
+CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
+ -Wbitwise -Wno-return-void $(CF)
MODFLAGS = -DMODULE
CFLAGS_MODULE = $(MODFLAGS)
AFLAGS_MODULE = $(MODFLAGS)