Commit 80a7d1d991e35b0370c0396f36f6a076869a6bac
Committed by
Sam Ravnborg
1 parent
4307184f2b
Exists in
master
and in
20 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
Makefile
| ... | ... | @@ -321,7 +321,8 @@ |
| 321 | 321 | PERL = perl |
| 322 | 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 | 326 | MODFLAGS = -DMODULE |
| 326 | 327 | CFLAGS_MODULE = $(MODFLAGS) |
| 327 | 328 | AFLAGS_MODULE = $(MODFLAGS) |