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]

fixinc/fixtests.c warning fix.


All

Here's a patch for fixtest.c to eliminate a warning.

OK to commit?

Graham

ChangeLog
	* fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Add static to prototype.

-------------------------------------------------------------------
Index: fixtests.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/fixtests.c,v
retrieving revision 1.22
diff -c -p -r1.22 fixtests.c
*** fixtests.c  2000/11/22 02:23:40     1.22
--- fixtests.c  2000/11/24 17:38:23
*************** typedef struct {
*** 58,64 ****
    _FT_( "machine_name",     machine_name_test )

  #define TEST_FOR_FIX_PROC_HEAD( test )          \
! apply_fix_p_t test PARAMS(( tCC* file, tCC* text ));  /* avoid warning */          \
  static apply_fix_p_t test ( fname, text )       \
      tCC* fname;                                 \
      tCC* text;
--- 58,64 ----
    _FT_( "machine_name",     machine_name_test )

  #define TEST_FOR_FIX_PROC_HEAD( test )          \
! static apply_fix_p_t test PARAMS(( tCC* file, tCC* text ));  /* avoid warning */          \
  static apply_fix_p_t test ( fname, text )       \
      tCC* fname;                                 \
      tCC* text;
--------------------------------------------------------------------

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