Skip to content

Commit 172aad8

Browse files
olafheringmasahir0y
authored andcommitted
kbuild: enforce -Werror=return-type
Catch errors which at least gcc tolerates by default: warning: 'return' with no value, in function returning non-void [-Wreturn-type] Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 7dfbea4 commit 172aad8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE
497497
KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
498498
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
499499
-Werror=implicit-function-declaration -Werror=implicit-int \
500-
-Wno-format-security \
500+
-Werror=return-type -Wno-format-security \
501501
-std=gnu89
502502
KBUILD_CPPFLAGS := -D__KERNEL__
503503
KBUILD_AFLAGS_KERNEL :=

0 commit comments

Comments
 (0)