declaration/definition mismatches (2/2)

Zack Weinberg zack@codesourcery.com
Sat Jun 28 01:13:00 GMT 2003


Here's the second batch of patches for declaration/definition
mismatches.  These are all slightly less obvious, but I believe
they are all correct.

bootstrapped i686-linux.

zw

        * dbxout.c (flag_debug_only_used_symbols): Delete redundant
        declaration.
f:
        * com.c (input_file_stack_tick): Delete redundant declaration.
java:
        * gjavah.c (flag_jni): Make non-static.
        * parse-scan.y (ctxp): Make non-static.

===================================================================
Index: dbxout.c
--- dbxout.c	27 Jun 2003 03:04:39 -0000	1.144
+++ dbxout.c	28 Jun 2003 00:06:16 -0000
@@ -93,8 +93,6 @@ Software Foundation, 59 Temple Place - S
 #include "xcoffout.h"
 #endif
 
-extern int flag_debug_only_used_symbols;
-
 #undef DBXOUT_DECR_NESTING
 #define DBXOUT_DECR_NESTING \
   if (--debug_nesting == 0 && symbol_queue_index > 0) \
===================================================================
Index: f/com.c
--- f/com.c	24 Jun 2003 19:54:24 -0000	1.207
+++ f/com.c	28 Jun 2003 00:06:18 -0000
@@ -15125,7 +15125,6 @@ static struct file_buf {
 } instack[INPUT_STACK_MAX];
 
 static int last_error_tick = 0;	   /* Incremented each time we print it.  */
-static int input_file_stack_tick = 0;  /* Incremented when status changes.  */
 
 /* Current nesting level of input sources.
    `instack[indepth]' is the level currently being read.  */
===================================================================
Index: java/gjavah.c
--- java/gjavah.c	3 May 2003 02:29:26 -0000	1.108
+++ java/gjavah.c	28 Jun 2003 00:06:18 -0000
@@ -52,7 +52,7 @@ FILE *out = NULL;
 static int found_error = 0;
 
 /* Nonzero if we're generating JNI output.  */
-static int flag_jni = 0;
+int flag_jni = 0;
 
 /* When nonzero, warn when source file is newer than matching class
    file.  */
===================================================================
Index: java/parse-scan.y
--- java/parse-scan.y	2 May 2003 11:33:06 -0000	1.32
+++ java/parse-scan.y	28 Jun 2003 00:06:18 -0000
@@ -55,7 +55,7 @@ location_t input_location;
 struct obstack temporary_obstack;
 
 /* The current parser context.  */
-static struct parser_ctxt *ctxp;
+struct parser_ctxt *ctxp;
 
 /* Error and warning counts, because they're used elsewhere  */
 int java_error_count;



More information about the Gcc-patches mailing list