This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: Patch: PR java/5923


Fixes these warning regressions which appeared a few days ago:

 > java/jcf-parse.c:350: warning: unused variable `str_ptr'
 > java/jcf-parse.c:351: warning: unused variable `str'

Tested on solaris2.7, installed as obvious on the trunk and 3.1
branch.

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/ChangeLog,v
retrieving revision 1.947
diff -u -p -r1.947 ChangeLog
--- ChangeLog	2002/03/17 20:41:45	1.947
+++ ChangeLog	2002/03/18 00:00:58
@@ -1,3 +1,7 @@
+2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* jcf-parse.c (get_constant): Delete unused variables.
+
 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
 
 	* java-tree.h (java_parse_file): New.
Index: jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.110
diff -u -p -r1.110 jcf-parse.c
--- jcf-parse.c	2002/03/17 20:41:45	1.110
+++ jcf-parse.c	2002/03/18 00:00:58
@@ -347,8 +347,6 @@ get_constant (jcf, index)
 	tree name = get_name_constant (jcf, JPOOL_USHORT1 (jcf, index));
 	const char *utf8_ptr = IDENTIFIER_POINTER (name);
 	int utf8_len = IDENTIFIER_LENGTH (name);
-	unsigned char *str_ptr;
-	unsigned char *str;
 	const unsigned char *utf8;
 	int i;
 


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