Re: [PATCH] kbuild: drop -Wdeclaration-after-statement

From: Linus Torvalds
Date: Fri Oct 28 2022 - 17:12:16 EST


On Fri, Oct 28, 2022 at 1:55 PM Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:
>
> It is not. Somehow millions of programmers manage to find their
> variables just fine in C and other programming languages.

That's fine. Go work with those projects.

The kernel also does lots of other things that people disagree with in
order to be a more cohesive body of work. Millions of programmers
manage with 2-space indentation and other horrors.

The kernel has its rules. Not having variable declarations in random
places is one of those rules. One of many.

Deal with it, and the fact that I won't apply your patch.

Linus