Testcase: void f(int c) { return c; }
int g(int c) { return; } ~$ gcc -Wreturn-type -c test.c -Werror -Wfatal-errors cc1: warnings being treated as errors test.c: In function f: test.c:3: warning: return with a value, in function returning void test.c: In function g: test.c:8: warning: return with no value, in function returning non-void If should have stopped after the first warning. -- Summary: -Werror -Wfatal-errors should stop after the first warning Product: gcc Version: 4.0.3 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: manu at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30824