Re: [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS
From: Borislav Petkov
Date: Wed Oct 17 2018 - 04:31:57 EST
On Wed, Oct 17, 2018 at 05:21:01PM +0900, Masahiro Yamada wrote:
> scripts/Makefile.extrawarn provides options for the target compiler (CC),
> whereas this patch adds -Wshadow=local for the host compiler (HOSTCC).
Aha, this wants to fix shadowing for the host tools, ok.
Next question: why not -Wshadow simply?
Also, -Wshadow for the target compiler is an extra warning (W=2). Why is
it enabled by default here?
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.