bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning options


From: Paul Eggert
Subject: Re: warning options
Date: Sun, 27 Nov 2011 23:31:47 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

On 11/27/11 16:13, Bruno Haible wrote:

> Why does this warning only appear on openSuSE 11.4 ??

Sorry, I don't know.

> The name mangling of the symbol 'main' is the same,
> regardless of whether it's defined to take 0 or 2 arguments. (We're in C here,
> not in C++.)

"main" is a special case and the C compiler is allowed to do
special things with it.  It could, for example, link to a
different crt0.o (or equivalent) depending on the signature
of "main".  Or it could mangle the name -- the C standard
doesn't prohibit that.

> Instead, I think, on such platforms the system must call main as if it
> was defined with varargs.

That implementation is allowed, but it's not required.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]