summaryrefslogtreecommitdiff
path: root/jvmaccess
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-10-03 16:13:17 +0300
committerTor Lillqvist <tlillqvist@suse.com>2011-10-03 16:15:31 +0300
commitd83eab64076aed534f481960ff3a18962633c297 (patch)
tree91e46f07bf17b04f7194f7e97f08237920696014 /jvmaccess
parent02abccf953185f266979aafd946f5b96c5d59875 (diff)
WaE: unreferenced formal parameters in the !SOLAR_JAVA case
Diffstat (limited to 'jvmaccess')
-rw-r--r--jvmaccess/source/classpath.cxx7
-rw-r--r--jvmaccess/source/unovirtualmachine.cxx2
-rw-r--r--jvmaccess/source/virtualmachine.cxx1
3 files changed, 10 insertions, 0 deletions
diff --git a/jvmaccess/source/classpath.cxx b/jvmaccess/source/classpath.cxx
index 102ed1d0325c..2389a9481cc1 100644
--- a/jvmaccess/source/classpath.cxx
+++ b/jvmaccess/source/classpath.cxx
@@ -126,6 +126,9 @@ void * ::jvmaccess::ClassPath::doTranslateToUrls(
}
return result;
#else
+ (void) context;
+ (void) environment;
+ (void) classPath;
return 0;
#endif
}
@@ -170,6 +173,10 @@ void * ::jvmaccess::ClassPath::doLoadClass(
}
return env->CallObjectMethodA(cl, methLoadClass, &arg);
#else
+ (void) context;
+ (void) environment;
+ (void) classPath;
+ (void) name;
return 0;
#endif
}
diff --git a/jvmaccess/source/unovirtualmachine.cxx b/jvmaccess/source/unovirtualmachine.cxx
index 436575c95a83..a2c038571d62 100644
--- a/jvmaccess/source/unovirtualmachine.cxx
+++ b/jvmaccess/source/unovirtualmachine.cxx
@@ -65,6 +65,8 @@ UnoVirtualMachine::UnoVirtualMachine(
jvmaccess::VirtualMachine::AttachGuard(m_virtualMachine).
getEnvironment()->NewGlobalRef(static_cast< jobject >(classLoader));
} catch (jvmaccess::VirtualMachine::AttachGuard::CreationException &) {}
+#else
+ (void) classLoader;
#endif
if (m_classLoader == 0) {
throw CreationException();
diff --git a/jvmaccess/source/virtualmachine.cxx b/jvmaccess/source/virtualmachine.cxx
index a257f55224cd..da7aa3843188 100644
--- a/jvmaccess/source/virtualmachine.cxx
+++ b/jvmaccess/source/virtualmachine.cxx
@@ -94,6 +94,7 @@ VirtualMachine::~VirtualMachine()
JNIEnv * VirtualMachine::attachThread(bool * pAttached) const
{
#ifndef SOLAR_JAVA
+ (void) pAttached;
return 0;
#else
OSL_ENSURE(pAttached != 0, "bad parameter");