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: Graham Stott <grahams at redhat dot com>
- To: guerby at acm dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Nov 2001 14:12:46 -0500
- Subject: Re: [Ada] Trivial fix for warning in utils.c
- References: <200111161905.fAGJ5dg32120@ulmo.localdomain>
guerby@acm.org wrote:
>
> Fixes:
>
> stage1/xgcc -Bstage1/ -B/home/guerby/work/gcc/install-2001-11-16-19-21-56/i686-pc-linux-gnu/bin/ -c -DIN_GCC `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -g -O2 -I- -I. -I.. -I../../../gcc/gcc/ada -I../../../gcc/gcc/ada/.. -I../../../gcc/gcc/ada/../config -I../../../gcc/gcc/ada/../../include ../../../gcc/gcc/ada/utils.c
> ../../../gcc/gcc/ada/utils.c:482: warning: function declaration isn't a prototype
>
> Untested but obvious, ok to commit?
>
I think is is wrong it needs to be buildable with a K&R compiler.
The proper fix is to rename "init_decl_processing" in gigi.h
Graham