WaE: unreferenced formal parameters in the !SOLAR_JAVA case

This commit is contained in:
Tor Lillqvist 2011-10-03 16:13:17 +03:00
parent 02abccf953
commit d83eab6407
3 changed files with 10 additions and 0 deletions

View file

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

View file

@ -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();

View file

@ -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");