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

Eli Zaretskii
2009-07-11T09:25:16Z

> Date: Sat, 11 Jul 2009 10:36:05 +0200 (CEST)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: gdb-patches@sourceware.org
>
> > Date: Sat, 11 Jul 2009 10:25:02 +0200
> > From: Jan Kratochvil <jan.kratochvil@redhat.com>
> >
> > Hi,
> >
> > currently GDB CVS HEAD cannot be built with gcc SVN HEAD
> > gcc (GCC) 4.5.0 20090711 (experimental)
> >
> > gdb/
> > 2009-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
> >
> > Fix gcc-4.5 HEAD warnings.
> > * ada-lang.h (enum ada_operator): Make the enum anonymous.
> > (BINOP_IN_BOUNDS, TERNOP_IN_RANGE, OP_ATR_FIRST, OP_ATR_LAST)
> > (OP_ATR_LENGTH, OP_ATR_IMAGE, OP_ATR_MAX, OP_ATR_MIN, OP_ATR_MODULUS)
> > (OP_ATR_POS, OP_ATR_SIZE, OP_ATR_TAG, OP_ATR_VAL, UNOP_QUAL)
> > (UNOP_IN_RANGE, OP_AGGREGATE, OP_OTHERS, OP_CHOICES, OP_POSITIONAL)
> > (OP_DISCRETE_RANGE): New casted #defines.
> > * cp-name-parser.y (GLOBAL_CONSTRUCTORS, GLOBAL_DESTRUCTORS): Replace
> > the enum by casted #defines.
> > * dwarf2read.c (GDB_FORM_cached_string): Likewise.
>
> Yuck, this is beyond ugly.

Agreed.