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


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


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