fixinc/fixtests.c warning fix.

Graham Stott grahams@redhat.com
Fri Nov 24 09:44:00 GMT 2000


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;
--------------------------------------------------------------------


More information about the Gcc-patches mailing list