Re: [patch] Fix warnings using gcc-4.5 HEAD

Daniel Jacobowitz
2009-07-11T19:02:50Z

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