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]

[gcjx] Patch: FYI: avoid spurious warning


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;
     }
 


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