This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: New blank line after 'all warnings being treated as errors'
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: gcc at gnu dot org
- Date: Fri, 11 Mar 2011 13:53:56 +0100
- Subject: Re: New blank line after 'all warnings being treated as errors'
- References: <AANLkTikK3g0BB1Aad041gf_Zu0qtmcsdRQgfqfdKgXqb@mail.gmail.com>
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.