[cfe-dev] gcc compatibility: error: number of arguments doesn't match prototype

Eli Friedman eli.friedman at gmail.com
Thu Mar 29 14:55:51 PDT 2012


On Sat, Mar 17, 2012 at 4:19 AM, Afriza N. Arief <afriza.na at gmail.com> wrote:
> void taskmain(int argc, char* argv[]);
>
> void taskmain() {
>   printf("libtask");
> }
>
> Hello,
>
> for the above code, gcc reports error and clang -std=gnu89 keeps quiet.
>
> is this intentional?

Not intentional... we really ought to be at least printing a warning
here.  Please file at http://llvm.org/bugs/ .

(Sorry about the delayed response.)

-Eli




More information about the cfe-dev mailing list