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


> I think is is wrong it needs to be buildable with a K&R compiler.

This does not apply to GNAT files since we already need GNAT + GCC
installed to start with so we do have an ANSI compiler around :).

> The proper fix is to rename "init_decl_processing" in gigi.h

I indeed forgot this part of the patch.

-- 
Laurent Guerby <guerby@acm.org>

2001-11-16  Laurent Guerby  <guerby@acm.org>
	
	* gigi.h, utils.c: Fix warning.

Index: utils.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/utils.c,v
retrieving revision 1.4
diff -c -3 -p -r1.4 utils.c
*** utils.c	2001/11/15 10:00:54	1.4
--- utils.c	2001/11/16 19:16:49
*************** pushdecl (decl)
*** 478,484 ****
     front end has been run.  */
  
  void
! gnat_init_decl_processing ()
  {
    lineno = 0;
  
--- 478,484 ----
     front end has been run.  */
  
  void
! gnat_init_decl_processing (void)
  {
    lineno = 0;
  
Index: gigi.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/gigi.h,v
retrieving revision 1.2
diff -c -3 -p -r1.2 gigi.h
*** gigi.h	2001/10/23 22:59:52	1.2
--- gigi.h	2001/11/16 19:16:51
*************** extern tree pushdecl			PARAMS ((tree));
*** 433,439 ****
  
  /* Create the predefined scalar types such as `integer_type_node' needed 
     in the gcc back-end and initialize the global binding level.  */
! extern void init_decl_processing	PARAMS ((void));
  extern void init_gigi_decls		PARAMS ((tree, tree));
  
  /* Return an integer type with the number of bits of precision given by  
--- 433,439 ----
  
  /* Create the predefined scalar types such as `integer_type_node' needed 
     in the gcc back-end and initialize the global binding level.  */
! extern void gnat_init_decl_processing	PARAMS ((void));
  extern void init_gigi_decls		PARAMS ((tree, tree));
  
  /* Return an integer type with the number of bits of precision given by  


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