[Top][All Lists]
[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.
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, (continued)
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Ben Pfaff, 2011/11/19
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Simon Josefsson, 2011/11/20
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Peter Johansson, 2011/11/20
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Jim Meyering, 2011/11/20
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Ben Pfaff, 2011/11/20
- Re: warning options, Bruno Haible, 2011/11/20
- Re: warning options, Paul Eggert, 2011/11/20
- Re: warning options, Bruno Haible, 2011/11/20
- Re: warning options, Paul Eggert, 2011/11/21
- Re: warning options, Bruno Haible, 2011/11/27
- Re: warning options,
Paul Eggert <=