This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30824] New: -Werror -Wfatal-errors should stop after the first warning
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2007 15:58:22 -0000
- Subject: [Bug c/30824] New: -Werror -Wfatal-errors should stop after the first warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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