This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Warnings on trunk
- From: NightStrike <nightstrike at gmail dot com>
- To: "Ian Lance Taylor" <iant at google dot com>
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, "Kai Tietz" <ktietz70 at googlemail dot com>, "Kai Tietz" <Kai dot Tietz at onevision dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 8 Jul 2008 13:00:55 -0400
- Subject: Re: C++ Warnings on trunk
- References: <b609cb3b0807080932w38b4fc7ft99fcf02b6a734aa5@mail.gmail.com> <m3myksxqv1.fsf@google.com>
On 7/8/08, Ian Lance Taylor <iant@google.com> wrote:
> NightStrike <nightstrike@gmail.com> writes:
>
> > I was under the impression that these would be cleaned up before the
> > -W options were applied to the trunk.
>
> It's pretty hard to clean up all the warnings for every possible
> target. Also these are only warnings--this code is not compiled with
> -Werror.
>
> In this case, I argue that this code is always compiled with a C
> compiler, and should never be compiled by a C++ compiler. Therefore,
> I believe it is wrong for this code to be compiled with the
> -Wc++-compat warning enabled. This should be fixed somewhere in the
> configure script and/or Makefile.
Ok. How about these?
../../gcc/gcc/bitmap.c: In function 'bitmap_obstack_alloc_stat':
../../gcc/gcc/bitmap.c:359: warning: request for implicit conversion
from 'void *' to 'struct bitmap_head_def *' not permitted in C++
../../gcc/gcc/bitmap.c: In function 'bitmap_obstack_free':
../../gcc/gcc/bitmap.c:394: warning: request for implicit conversion
from 'void *' to 'struct bitmap_element *' not permitted in C++