Skip to content

Commit

Permalink
kbuild: disable sparse warning "returning void-valued expression"
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
hanneseder-net authored and sravnborg committed Jan 2, 2009
1 parent 4307184 commit 80a7d1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 80a7d1d

Please sign in to comment.