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

Linus Torvalds
2022-10-28T21:12:16Z

On Fri, Oct 28, 2022 at 1:55 PM Alexey Dobriyan <adobriyan@gmail.com> 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