This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] Fix warnings in gnu/classpath/jdwp/natVMFrame.cc
- From: Keith Seitz <keiths at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Fri, 19 Jan 2007 09:47:56 -0800
- Subject: [PATCH] Fix warnings in gnu/classpath/jdwp/natVMFrame.cc
I have committed the attached patch to do $SUBJECT.
Keith
ChangeLog
2007-01-19 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
MAYBE_UNUSED.
Index: gnu/classpath/jdwp/natVMFrame.cc
===================================================================
--- gnu/classpath/jdwp/natVMFrame.cc (revision 120969)
+++ gnu/classpath/jdwp/natVMFrame.cc (working copy)
@@ -1,6 +1,6 @@
// natFrame.cc -- native support for VMFrame.java
-/* Copyright (C) 2006 Free Software Foundation
+/* Copyright (C) 2006, 2007 Free Software Foundation
This file is part of libgcj.
@@ -9,18 +9,20 @@
details. */
#include <gcj/cni.h>
+#include <jvm.h>
#include <gnu/classpath/jdwp/VMFrame.h>
using namespace java::lang;
Object*
-gnu::classpath::jdwp::VMFrame::getValue (jint slot)
+gnu::classpath::jdwp::VMFrame::getValue (MAYBE_UNUSED jint slot)
{
return 0;
}
void
-gnu::classpath::jdwp::VMFrame::setValue (jint slot, Object* value)
+gnu::classpath::jdwp::VMFrame::setValue (MAYBE_UNUSED jint slot,
+ MAYBE_UNUSED Object* value)
{
}