diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-05-17 01:47:20 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-05-17 03:07:25 +0200 |
commit | 759f55c01059b599f4294ea2e37d3dc3748a54be (patch) | |
tree | b3c79c127ccc7e6b12ecf8db9269b048a8659196 /jvmfwk | |
parent | d8329149394e4e5758a9e293b0162db050379a4e (diff) |
jvmfwk: fix [-Werror,-Wunused-function]
After recent cleanups, android build fails with
sunjavaplugin.cxx:204:5: error: unused function 'createJvm'
[-Werror,-Wunused-function]
Change-Id: Idc9a97673debdd5da798fbdc729b8d90b6b7af9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94371
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'jvmfwk')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx index 1d3667988cf9..7fcd60891263 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx @@ -201,6 +201,7 @@ extern "C" void JNICALL abort_handler() typedef jint JNICALL JNI_CreateVM_Type(JavaVM **, JNIEnv **, void *); +#ifndef ANDROID int createJvm( JNI_CreateVM_Type * pCreateJavaVM, JavaVM ** pJavaVM, JNIEnv ** ppEnv, JavaVMInitArgs * vm_args) { @@ -228,6 +229,7 @@ int createJvm( err= 1; return err; } +#endif /** helper function to check Java version requirements |