This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [patch] Fix warnings using gcc-4.5 HEAD


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


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