Commit 0b1231eaeb237b48393ab4c93e39f4e33fa1a2f8
1 parent
38ccd1c2
Eliminates a compiler warning
Showing
1 changed file
with
3 additions
and
1 deletions
openbr/plugins/jni.cpp
| @@ -65,7 +65,9 @@ class JNITransform : public UntrainableTransform | @@ -65,7 +65,9 @@ class JNITransform : public UntrainableTransform | ||
| 65 | 65 | ||
| 66 | void project(const Template &src, Template &dst) const | 66 | void project(const Template &src, Template &dst) const |
| 67 | { | 67 | { |
| 68 | - JNIEnv *env; | 68 | + (void)dst; //Eliminates a compiler warning. |
| 69 | + | ||
| 70 | + JNIEnv *env; | ||
| 69 | 71 | ||
| 70 | //Attach current thread to the thread of the JavaVM and access env | 72 | //Attach current thread to the thread of the JavaVM and access env |
| 71 | JNIInitializer::jvm->AttachCurrentThreadAsDaemon((void**)&env, NULL); | 73 | JNIInitializer::jvm->AttachCurrentThreadAsDaemon((void**)&env, NULL); |