This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Trivial fix for warning in utils.c
- From: <guerby at acm dot org>
- To: dave at hiauly1 dot hia dot nrc dot ca
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Nov 2001 20:35:29 +0100
- Subject: Re: [Ada] Trivial fix for warning in utils.c
- References: <200111161928.fAGJSW44010685@hiauly1.hia.nrc.ca>
- Reply-to: guerby at acm dot org
> 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>