This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix warnings using gcc-4.5 HEAD
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 11 Jul 2009 15:02:35 -0400
- Subject: Re: [patch] Fix warnings using gcc-4.5 HEAD
- References: <20090711082502.GA18801@host0.dyn.jankratochvil.net>
On Sat, Jul 11, 2009 at 10:25:02AM +0200, Jan Kratochvil wrote:
> Hi,
>
> currently GDB CVS HEAD cannot be built with gcc SVN HEAD
> gcc (GCC) 4.5.0 20090711 (experimental)
>
> ada-lang.c: In function âada_attribute_nameâ:
> ada-lang.c:7501:9: error: comparison between âenum exp_opcodeâ and âenum ada_operatorâ
In general, I've been advised that variables affected by this:
> dwarf2read.c: In function âdwarf2_nameâ:
> dwarf2read.c:8513:22: error: comparison between âenum dwarf_formâ and âenum <anonymous>â
Should actually use int variables since they aren't really of a single
enum's type.
I really don't like this warning, though.
--
Daniel Jacobowitz
CodeSourcery