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

From: Randy Dunlap
Date: Mon Aug 16 2021 - 21:01:44 EST


On 8/16/21 5:38 PM, Linus Torvalds wrote:
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.

That sounds likely. We can just ignore this if you had rather go that way.

--
~Randy