diff options
author | Olaf Hering <olaf@aepfle.de> | 2020-10-11 21:54:31 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-10-12 03:24:11 +0300 |
commit | 172aad81a882443eefe1bd860c4eddc81b14dd5b (patch) | |
tree | 045209a3eb8e491878ebb2cede74e698397a493b /Makefile | |
parent | 7dfbea4c468cfbc7e1ceb619fe337e7582eb1d2d (diff) | |
download | linux-172aad81a882443eefe1bd860c4eddc81b14dd5b.tar.xz |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -497,7 +497,7 @@ KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ -Werror=implicit-function-declaration -Werror=implicit-int \ - -Wno-format-security \ + -Werror=return-type -Wno-format-security \ -std=gnu89 KBUILD_CPPFLAGS := -D__KERNEL__ KBUILD_AFLAGS_KERNEL := |