Kaydet (Commit) d83eab64 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: unreferenced formal parameters in the !SOLAR_JAVA case

üst 02abccf9
...@@ -126,6 +126,9 @@ void * ::jvmaccess::ClassPath::doTranslateToUrls( ...@@ -126,6 +126,9 @@ void * ::jvmaccess::ClassPath::doTranslateToUrls(
} }
return result; return result;
#else #else
(void) context;
(void) environment;
(void) classPath;
return 0; return 0;
#endif #endif
} }
...@@ -170,6 +173,10 @@ void * ::jvmaccess::ClassPath::doLoadClass( ...@@ -170,6 +173,10 @@ void * ::jvmaccess::ClassPath::doLoadClass(
} }
return env->CallObjectMethodA(cl, methLoadClass, &arg); return env->CallObjectMethodA(cl, methLoadClass, &arg);
#else #else
(void) context;
(void) environment;
(void) classPath;
(void) name;
return 0; return 0;
#endif #endif
} }
......
...@@ -65,6 +65,8 @@ UnoVirtualMachine::UnoVirtualMachine( ...@@ -65,6 +65,8 @@ UnoVirtualMachine::UnoVirtualMachine(
jvmaccess::VirtualMachine::AttachGuard(m_virtualMachine). jvmaccess::VirtualMachine::AttachGuard(m_virtualMachine).
getEnvironment()->NewGlobalRef(static_cast< jobject >(classLoader)); getEnvironment()->NewGlobalRef(static_cast< jobject >(classLoader));
} catch (jvmaccess::VirtualMachine::AttachGuard::CreationException &) {} } catch (jvmaccess::VirtualMachine::AttachGuard::CreationException &) {}
#else
(void) classLoader;
#endif #endif
if (m_classLoader == 0) { if (m_classLoader == 0) {
throw CreationException(); throw CreationException();
......
...@@ -94,6 +94,7 @@ VirtualMachine::~VirtualMachine() ...@@ -94,6 +94,7 @@ VirtualMachine::~VirtualMachine()
JNIEnv * VirtualMachine::attachThread(bool * pAttached) const JNIEnv * VirtualMachine::attachThread(bool * pAttached) const
{ {
#ifndef SOLAR_JAVA #ifndef SOLAR_JAVA
(void) pAttached;
return 0; return 0;
#else #else
OSL_ENSURE(pAttached != 0, "bad parameter"); OSL_ENSURE(pAttached != 0, "bad parameter");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment