[LLVMbugs] [Bug 8544] New: -Wold-style-definition has no effect
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 3 19:49:51 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: jpbonn-keyword-llvmbug.a51747 at corniceresearch.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list