Re: [RESEND PATCH v1] x86/build: add -fno-builtin flag to prevent shadowing

From: Nick Desaulniers
Date: Mon May 09 2022 - 15:50:22 EST


On Mon, May 9, 2022 at 8:01 AM Vincent MAILHOL
<mailhol.vincent@xxxxxxxxxx> wrote:
>
> Instead, I am thinking of just using -fno-builtin-ffs to remove
> the annoying -Wshadow warning. Would that make more sense?

Perhaps a pragma would be the best tool to silence this instance of
-Wshadow? I understand what GCC is trying to express, but the kernel
does straddle a weird place between -ffreestanding and a "hosted" env.
--
Thanks,
~Nick Desaulniers