This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [PATCH] cli-out.c compilation error
- To: Fernando Nasser <fnasser at redhat dot com>
- Subject: Re: [PATCH] cli-out.c compilation error
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 21 Feb 2000 10:50:20 +1100
- CC: Philippe De Muyter <phdm at macqel dot be>, "gdb-patches at sourceware dot cygnus dot com" <gdb-patches at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions
- References: <200002191122.MAA28212@mail.macqel.be> <38B030F7.211F2DBD@redhat.com>
Fernando Nasser wrote:
>
> Done.
>
Unfortunatly, life isn't that easy, it doesn't fix the problem.
Some of the ISO-C compilers complain about:
void f (enum e i);
void f (i) enum e i; { };
because an ``enum e'' can have promotion rules.
In 4.18, this was worked around by making the declaration an int.
In 5.0, ISO-C is assumed, so the problem can be (correctly) fixed by
converting the function definition into ISO-C.
sorry,
Andrew