WaE: unreferenced formal parameters in the !SOLAR_JAVA case
This commit is contained in:
parent
02abccf953
commit
d83eab6407
3 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue