Re: [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS

From: Masahiro Yamada
Date: Thu Oct 18 2018 - 22:42:36 EST


On Fri, Oct 19, 2018 at 1:53 AM Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> On Fri, Oct 19, 2018 at 01:39:21AM +0900, Masahiro Yamada wrote:
> > It is not realistic to enable this warning option by default.
>
> I believe the question is whether to enable that warning by default in
> KBUILD_HOSTCFLAGS. Enabling it by default for the target kernel is of
> course, too noisy. That's why it is hidden behind W=2 there.


Sorry, I misunderstood the question.

The difference about the noisiness between CC and HOSTCC
is just comes from the amount of source code.

Adding -Wshadow to KBUILD_HOSTCFLAGS emits another warning in Kconfig.
Of course, it is easy to fix.
But, I just started to think this option is a kind of harsh...


--
Best Regards
Masahiro Yamada