This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [Ada] Trivial fix for warning in utils.c


> All the functions in the file use KR style.  The function actually needs
> a prototype.  There is one in misc.c but that is rather a strange place
> for it.

Not true, I checked to see wether void was already used and found:

void
end_subprog_body (void)

Looking in other ada/*.c files both style are used (PARAMS((void)) vs (void)).
It would be trivial to move to one or another. Richard, should I test and submit
a patch moving to one of those style (and which one)?

BTW, do the ada/*.c file use C features not supported by your average
K&R compiler? (Giving a false sense of K&R'ness makes no good IMHO.)

-- 
Laurent Guerby <guerby@acm.org>


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