This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: PR java/5923
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: tromey at redhat dot com
- Cc: apbianco at redhat dot com, gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Sun, 17 Mar 2002 19:06:20 -0500 (EST)
- Subject: 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;