aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2008-12-27 16:38:44 -0500
committerSam Ravnborg <sam@ravnborg.org>2009-01-02 14:43:24 -0500
commit80a7d1d991e35b0370c0396f36f6a076869a6bac (patch)
tree1b0d52856aea9072dbcbe27746303106b3c20dda /Makefile
parent4307184f2b9240d0443bdf944c7b9eac044fe67b (diff)
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
321PERL = perl 321PERL = perl
322CHECK = sparse 322CHECK = sparse
323 323
324CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(CF) 324CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
325 -Wbitwise -Wno-return-void $(CF)
325MODFLAGS = -DMODULE 326MODFLAGS = -DMODULE
326CFLAGS_MODULE = $(MODFLAGS) 327CFLAGS_MODULE = $(MODFLAGS)
327AFLAGS_MODULE = $(MODFLAGS) 328AFLAGS_MODULE = $(MODFLAGS)