This is the mail archive of the gcc@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]

Re: New blank line after 'all warnings being treated as errors'


On Fri, Mar 11, 2011 at 4:41 AM, Diego Novillo <dnovillo@google.com> wrote:
> After -Werror is triggered, we are now emitting an extra blank line
> that we were not emitting before. ?Was this change intentional? ?Does
> anyone recognize this?
>
> $ cat a.cc
> char c = 257;
> $ g++-4.4.3 -c -o /dev/null -Werror a.cc
> cc1plus: warnings being treated as errors
> a.cc:1: error: overflow in implicit constant conversion
> $
>
> But with trunk, I get:
>
> $ ~/gcc-trunk/native/bin/g++ -c -o /dev/null -Werror a.cc
> a.cc:1:10: error: overflow in implicit constant conversion [-Werror=overflow]
> cc1plus: all warnings being treated as errors
> [... extra blank line ...]
> $
>
> It looks odd. ?Should we change it back to the old way? ?(maybe I just
> missed the documentation on the change).

I think it's a bug.

Richard.


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