[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNATnxOy+Wa66yTtj4EuSut=uv5pi5c=ToENv-6w4fYTn0g@mail.gmail.com>
Date: Mon, 12 Oct 2020 12:25:55 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Olaf Hering <olaf@...fle.de>
Cc: Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Michal Marek <michal.lkml@...kovi.net>
Subject: Re: [PATCH v2] kbuild: enforce -Werror=return-type
On Mon, Oct 12, 2020 at 3:54 AM Olaf Hering <olaf@...fle.de> wrote:
>
> Catch errors which at least gcc tolerates by default:
> warning: 'return' with no value, in function returning non-void [-Wreturn-type]
Applied to linux-kbuild. Thanks.
> Signed-off-by: Olaf Hering <olaf@...fle.de>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index f84d7e4ca0be..965e7259e6e8 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -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 :=
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists