summaryrefslogtreecommitdiffstats
path: root/java/src/jni/h5lImp.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-03-24 22:42:58 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:56 (GMT)
commite498e3ac3ec998288eefd95c9a6b8992741db433 (patch)
treef7a4845cb89a365a49483f551fb26f666741dbaf /java/src/jni/h5lImp.c
parent1bd5fb6bf1e7e183d33f767e2d43626f1ac1eade (diff)
downloadhdf5-e498e3ac3ec998288eefd95c9a6b8992741db433.zip
hdf5-e498e3ac3ec998288eefd95c9a6b8992741db433.tar.gz
hdf5-e498e3ac3ec998288eefd95c9a6b8992741db433.tar.bz2
Fix Werror issues in JNI and tools
Diffstat (limited to 'java/src/jni/h5lImp.c')
-rw-r--r--java/src/jni/h5lImp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/jni/h5lImp.c b/java/src/jni/h5lImp.c
index 6606664..b5312bd 100644
--- a/java/src/jni/h5lImp.c
+++ b/java/src/jni/h5lImp.c
@@ -672,6 +672,7 @@ H5L_iterate_cb
jobject visit_callback = wrapper->visit_callback;
jstring str;
JNIEnv *cbenv = NULL;
+ jclass cbcls;
jvalue args[5];
void *op_data = (void *)wrapper->op_data;
jint status = -1;
@@ -682,10 +683,10 @@ H5L_iterate_cb
}
/* Get the Method ID for the "callback" function of the H5L_iterate_t class */
- if (NULL == (cls = CBENVPTR->GetObjectClass(CBENVONLY, visit_callback)))
+ if (NULL == (cbcls = CBENVPTR->GetObjectClass(CBENVONLY, visit_callback)))
CHECK_JNI_EXCEPTION(CBENVONLY, JNI_FALSE);
- if (NULL == (mid = CBENVPTR->GetMethodID(CBENVONLY, cls, "callback", "(JLjava/lang/String;Lhdf/hdf5lib/structs/H5L_info_t;Lhdf/hdf5lib/callbacks/H5L_iterate_opdata_t;)I")))
+ if (NULL == (mid = CBENVPTR->GetMethodID(CBENVONLY, cbcls, "callback", "(JLjava/lang/String;Lhdf/hdf5lib/structs/H5L_info_t;Lhdf/hdf5lib/callbacks/H5L_iterate_opdata_t;)I")))
CHECK_JNI_EXCEPTION(CBENVONLY, JNI_FALSE);
if (NULL == (str = CBENVPTR->NewStringUTF(CBENVONLY, name)))