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]

Remove unused variable in libjava/defineclass.cc


Bootstrapping GCC I noticed a warning about an undefined variable
which is correct, the_super is defined again a couple of lines
further in the block.

I've committed this patch as obvious after testing on Linux/x86-64.

Andreas

2005-07-17  Andreas Jaeger  <aj@suse.de>

	* defineclass.cc (handleClassBegin): Remove unused variable.

============================================================
Index: libjava/defineclass.cc
--- libjava/defineclass.cc	24 Jun 2005 22:48:31 -0000	1.47
+++ libjava/defineclass.cc	16 Jul 2005 15:50:22 -0000
@@ -960,7 +960,6 @@ _Jv_ClassReader::handleClassBegin (int a
   // needed.
   *found_name = def->name;
 
-  jclass the_super = NULL;
   if (super_class != 0)
     {
       // Load the superclass.

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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