This is the mail archive of the gdb-patches@sourceware.cygnus.com 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]

Re: [PATCH] cli-out.c compilation error


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

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