Re: [PATCH] Makefile: use -Wno-main in the full kernel tree

From: Linus Torvalds
Date: Mon Aug 16 2021 - 20:39:49 EST

On Mon, Aug 16, 2021 at 2:33 PM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> So the warnings that clang gives with -Wmain seem to be much more reasonable.

In fact, I can't recreate the warning even with gcc and -Wmain.

I get the feeling that this was a temporary misake in gcc, and perhaps
only warns in a few very specific versions, and the gcc people already
fixed this long ago.

Oh well.