diff options
author | Hannes Eder <hannes@hanneseder.net> | 2008-12-27 16:38:44 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-01-02 14:43:24 -0500 |
commit | 80a7d1d991e35b0370c0396f36f6a076869a6bac (patch) | |
tree | 1b0d52856aea9072dbcbe27746303106b3c20dda /Makefile | |
parent | 4307184f2b9240d0443bdf944c7b9eac044fe67b (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-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -321,7 +321,8 @@ KALLSYMS = scripts/kallsyms | |||
321 | PERL = perl | 321 | PERL = perl |
322 | CHECK = sparse | 322 | CHECK = sparse |
323 | 323 | ||
324 | CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(CF) | 324 | CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ |
325 | -Wbitwise -Wno-return-void $(CF) | ||
325 | MODFLAGS = -DMODULE | 326 | MODFLAGS = -DMODULE |
326 | CFLAGS_MODULE = $(MODFLAGS) | 327 | CFLAGS_MODULE = $(MODFLAGS) |
327 | AFLAGS_MODULE = $(MODFLAGS) | 328 | AFLAGS_MODULE = $(MODFLAGS) |