summaryrefslogtreecommitdiffstats
path: root/gcc/fixinc/fixtests.c
diff options
context:
space:
mode:
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-12 14:28:55 +0000
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-12 14:28:55 +0000
commit2548396b386b32fbeff4eeea7587b46f2cef749b (patch)
treef13d965e3c5b9e45cd60009af6a3d7dd4b8c368f /gcc/fixinc/fixtests.c
parentc4882ebae9a0deccc3a74dbf3cb74a91ab7799f5 (diff)
downloadppe42-gcc-2548396b386b32fbeff4eeea7587b46f2cef749b.tar.gz
ppe42-gcc-2548396b386b32fbeff4eeea7587b46f2cef749b.zip
code cleanups
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36359 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc/fixtests.c')
-rw-r--r--gcc/fixinc/fixtests.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/fixinc/fixtests.c b/gcc/fixinc/fixtests.c
index 3b0c79833df..7a057f65ee6 100644
--- a/gcc/fixinc/fixtests.c
+++ b/gcc/fixinc/fixtests.c
@@ -47,18 +47,20 @@ Boston, MA 02111-1307, USA. */
#include "fixlib.h"
+typedef apply_fix_p_t t_test_proc PARAMS(( tCC* file, tCC* text ));
+
typedef struct {
- tCC* test_name;
- apply_fix_p_t (*test_proc)();
+ tCC* test_name;
+ t_test_proc* test_proc;
} test_entry_t;
#define FIX_TEST_TABLE \
_FT_( "machine_name", machine_name_test )
-
-#define TEST_FOR_FIX_PROC_HEAD( test ) \
-static apply_fix_p_t test ( fname, text ) \
- tCC* fname; \
+#define TEST_FOR_FIX_PROC_HEAD( test ) \
+t_test_proc test; /* avoid warning */ \
+static apply_fix_p_t test ( fname, text ) \
+ tCC* fname; \
tCC* text;
OpenPOWER on IntegriCloud