[LLVMbugs] [Bug 12414] New: gcc compatibility: error: number of arguments doesn't match prototype

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 29 17:18:15 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12414

             Bug #: 12414
           Summary: gcc compatibility: error: number of arguments doesn't
                    match prototype
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: afriza.na at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


void taskmain(int argc, char* argv[]);

void taskmain() {
  printf("libtask");
}

For the above code, gcc reports error and clang -std=gnu89 keeps quiet.

We really ought to be at least printing a warning here.

Reference: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-March/020421.html

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list