[Bug 376194] New: -Wunprototyped-calls does not seem to like K&R syntax
https://bugzilla.novell.com/show_bug.cgi?id=376194 User burnus@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=376194#c355254 Summary: -Wunprototyped-calls does not seem to like K&R syntax Product: openSUSE 11.0 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: rguenther@novell.com ReportedBy: burnus@gmx.de QAContact: qa@suse.de Found By: --- This is somehow related to bug #355254 and seems to be a SUSE specific patch. The following is a valid K&R program with a well-defined prototype; however, using -Wall which implies -Wunprototyped-calls rejects it with the following message: gcc -Wall test.c aa.c: In function 'bar': aa.c:8: warning: call to function 'foo' without a real prototype aa.c:3: note: 'foo' was declared here aa.c:8: error: void value not ignored as it ought to be aa.c:9: warning: control reaches end of non-void function void foo(i) int i; { } int bar(void) { return foo(0); } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=376194
User rguenther@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=376194#c1
Richard Guenther
https://bugzilla.novell.com/show_bug.cgi?id=376194
User rguenther@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=376194#c2
Richard Guenther
participants (1)
-
bugzilla_noreply@novell.com