This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/30824] New: -Werror -Wfatal-errors should stop after the first warning


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]