diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-09-05 20:21:02 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-09-05 20:21:02 (GMT) |
commit | 60cc470a359f13eba31945c396a58fd96a490f35 (patch) | |
tree | 20a27db133ea351b2e4cbd871ed7e32e0fce7b9f /java | |
parent | ff4cb06d425d04c87f4a8389e93b8ea5ef39e110 (diff) | |
download | hdf5-60cc470a359f13eba31945c396a58fd96a490f35.zip hdf5-60cc470a359f13eba31945c396a58fd96a490f35.tar.gz hdf5-60cc470a359f13eba31945c396a58fd96a490f35.tar.bz2 |
Fix unused var
Diffstat (limited to 'java')
-rw-r--r-- | java/src/jni/h5pFAPLImp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/src/jni/h5pFAPLImp.c b/java/src/jni/h5pFAPLImp.c index 69cdfdb..f737319 100644 --- a/java/src/jni/h5pFAPLImp.c +++ b/java/src/jni/h5pFAPLImp.c @@ -441,9 +441,9 @@ JNIEXPORT void JNICALL Java_hdf_hdf5lib_H5_H5Pset_1fapl_1hdfs (JNIEnv *env, jclass clss, jlong fapl_id, jobject fapl_config) { - const char *str = NULL; #ifdef H5_HAVE_LIBHDFS H5FD_hdfs_fapl_t instance; + const char *str = NULL; jfieldID fid; jstring j_str; jclass cls; @@ -536,8 +536,10 @@ Java_hdf_hdf5lib_H5_H5Pset_1fapl_1hdfs #endif /* H5_HAVE_LIBHDFS */ done: +#ifdef H5_HAVE_LIBHDFS if (str) UNPIN_JAVA_STRING(ENVONLY, j_str, str); +#endif /* H5_HAVE_LIBHDFS */ } /* end Java_hdf_hdf5lib_H5_H5Pset_1fapl_1hdfs */ /* @@ -854,9 +856,9 @@ JNIEXPORT void JNICALL Java_hdf_hdf5lib_H5_H5Pset_1fapl_1ros3 (JNIEnv *env, jclass clss, jlong fapl_id, jobject fapl_config) { - const char *str = NULL; #ifdef H5_HAVE_ROS3_VFD H5FD_ros3_fapl_t instance; + const char *str = NULL; jfieldID fid; jstring j_str; jclass cls; @@ -940,8 +942,10 @@ Java_hdf_hdf5lib_H5_H5Pset_1fapl_1ros3 #endif /* H5_HAVE_ROS3_VFD */ done: +#ifdef H5_HAVE_ROS3_VFD if (str) UNPIN_JAVA_STRING(ENVONLY, j_str, str); +#endif /* H5_HAVE_LIBHDFS */ } /* end Java_hdf_hdf5lib_H5_H5Pset_1fapl_1ros3 */ /* |