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.