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

Afriza N. Arief afriza.na at gmail.com
Sat Mar 17 04:19:37 PDT 2012


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?

Regards,

Afriza N. Arief
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120317/2858a21a/attachment.html>


More information about the cfe-dev mailing list