This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: avoid spurious warning
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 23 Apr 2005 00:07:30 -0600
- Subject: [gcjx] Patch: FYI: avoid spurious warning
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
This avoids a bad warning about a private method not being called when
it actually is called.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* model/invoke.cc (find_method): Call 'set_used' before early
return.
Index: model/invoke.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/model/Attic/invoke.cc,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 invoke.cc
--- model/invoke.cc 21 Mar 2005 22:02:25 -0000 1.1.2.3
+++ model/invoke.cc 23 Apr 2005 06:05:13 -0000
@@ -143,6 +143,7 @@
{
// Found it.
method = *(applicable.begin ());
+ method->set_used ();
return;
}