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

           Summary: -Wold-style-definition has no effect
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


When the following program is compiled using GCC with -Wold-style-definition it
warns about the definition of f(). Clang does not issue a warning for f().

This example was distilled from the GCC teststuite:

typedef struct {
  long int p_x, p_y;
} Point;

void
f (p0, p1)
     Point p0, p1;
{
  if (p0.p_x != 0)
    abort ();
}

int
main ()
{
  Point p0, p1;
  p0.p_x = p1.p_x = 0;
  p0.p_y = p1.p_y = 1;
  f (p0, p1);
  exit(0);
}

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to