This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [RFA] Add JDWP VM_INIT JVMTI callback
Andrew Haley wrote:
Keith: as well as Marco's fixes, please fix your warnings.
Okay, I've committed Marco's fix.
Here's a patch which removes the warnings and does some reformatting of
the long lines (and other really minor whitespace stuff that indent found).
However, it contains a lot of method decls like:
jint
gnu::classpath::jdwp::
some_method (MAYBE_UNUSED type1 argument1, MAYBE_UNUSED type2 argument2,
MAYBE_UNUSED type3 argument3)
{
// ...
}
and such. Indent was very inconsistent about how to format some of these
lines, so I chose the one I thought looked the best.
Any suggestions on how to clean these long lines up better or is this
sufficient?
Keith
ChangeLog
2007-01-18 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused
parameters in
methods and reformat.
Index: gnu/classpath/jdwp/natVMVirtualMachine.cc
===================================================================
--- gnu/classpath/jdwp/natVMVirtualMachine.cc (revision 120946)
+++ gnu/classpath/jdwp/natVMVirtualMachine.cc (working copy)
@@ -62,7 +62,7 @@
}
void
-gnu::classpath::jdwp::VMVirtualMachine ::suspendThread (Thread *thread)
+gnu::classpath::jdwp::VMVirtualMachine::suspendThread (Thread *thread)
{
jint value;
Integer *count;
@@ -213,7 +213,7 @@
case EventRequest::EVENT_VM_INIT:
break;
-
+
case EventRequest::EVENT_VM_DEATH:
break;
}
@@ -244,7 +244,7 @@
case EventRequest::EVENT_THREAD_END:
break;
-
+
case EventRequest::EVENT_CLASS_PREPARE:
break;
@@ -268,14 +268,14 @@
case EventRequest::EVENT_VM_INIT:
break;
-
+
case EventRequest::EVENT_VM_DEATH:
break;
}
}
void
-gnu::classpath::jdwp::VMVirtualMachine::clearEvents (jbyte kind)
+gnu::classpath::jdwp::VMVirtualMachine::clearEvents (MAYBE_UNUSED jbyte kind)
{
}
@@ -292,69 +292,75 @@
}
jint
-gnu::classpath::jdwp::VMVirtualMachine::getClassStatus (jclass klass)
+gnu::classpath::jdwp::VMVirtualMachine::
+getClassStatus (MAYBE_UNUSED jclass klass)
{
return 0;
}
JArray<gnu::classpath::jdwp::VMMethod *> *
-gnu::classpath::jdwp::VMVirtualMachine::getAllClassMethods (jclass klass)
+gnu::classpath::jdwp::VMVirtualMachine::
+getAllClassMethods (MAYBE_UNUSED jclass klass)
{
return NULL;
}
gnu::classpath::jdwp::VMMethod *
-gnu::classpath::jdwp::VMVirtualMachine::getClassMethod (jclass klass, jlong id)
+gnu::classpath::jdwp::VMVirtualMachine::
+getClassMethod (MAYBE_UNUSED jclass klass, MAYBE_UNUSED jlong id)
{
return NULL;
}
java::util::ArrayList *
-gnu::classpath::jdwp::VMVirtualMachine::getFrames (Thread *thread,
- jint start,
- jint length)
+gnu::classpath::jdwp::VMVirtualMachine::getFrames (MAYBE_UNUSED Thread *thread,
+ MAYBE_UNUSED jint start,
+ MAYBE_UNUSED jint length)
{
return NULL;
}
gnu::classpath::jdwp::VMFrame *
-gnu::classpath::jdwp::VMVirtualMachine::getFrame (Thread *thread,
- ::java::nio::ByteBuffer *bb)
+gnu::classpath::jdwp::VMVirtualMachine::
+getFrame (MAYBE_UNUSED Thread *thread, MAYBE_UNUSED::java::nio::ByteBuffer *bb)
{
return NULL;
}
jint
-gnu::classpath::jdwp::VMVirtualMachine::getFrameCount (Thread *thread)
+gnu::classpath::jdwp::VMVirtualMachine::
+getFrameCount (MAYBE_UNUSED Thread *thread)
{
return 0;
}
jint
-gnu::classpath::jdwp::VMVirtualMachine::getThreadStatus (Thread *thread)
+gnu::classpath::jdwp::VMVirtualMachine::
+getThreadStatus (MAYBE_UNUSED Thread *thread)
{
return 0;
}
java::util::ArrayList *
-gnu::classpath::jdwp::VMVirtualMachine::getLoadRequests (ClassLoader *cl)
+gnu::classpath::jdwp::VMVirtualMachine::
+getLoadRequests (MAYBE_UNUSED ClassLoader *cl)
{
return NULL;
}
MethodResult *
-gnu::classpath::jdwp::VMVirtualMachine::executeMethod (jobject obj,
- Thread *thread,
- jclass clazz,
- reflect::Method *method,
- jobjectArray values,
- jboolean nonVirtual)
+gnu::classpath::jdwp::VMVirtualMachine::
+executeMethod (MAYBE_UNUSED jobject obj, MAYBE_UNUSED Thread *thread,
+ MAYBE_UNUSED jclass clazz, MAYBE_UNUSED reflect::Method *method,
+ MAYBE_UNUSED jobjectArray values,
+ MAYBE_UNUSED jboolean nonVirtual)
{
return NULL;
}
jstring
-gnu::classpath::jdwp::VMVirtualMachine::getSourceFile (jclass clazz)
+gnu::classpath::jdwp::VMVirtualMachine::
+getSourceFile (MAYBE_UNUSED jclass clazz)
{
return NULL;
}