diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-03-24 22:03:09 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:56 (GMT) |
commit | 1bd5fb6bf1e7e183d33f767e2d43626f1ac1eade (patch) | |
tree | 2f6c17d5a17ccef9d4ba3d0bd4996abca5e2563d | |
parent | e7c76ec46f40b8ecc0d987f30cd0be499f5495f1 (diff) | |
download | hdf5-1bd5fb6bf1e7e183d33f767e2d43626f1ac1eade.zip hdf5-1bd5fb6bf1e7e183d33f767e2d43626f1ac1eade.tar.gz hdf5-1bd5fb6bf1e7e183d33f767e2d43626f1ac1eade.tar.bz2 |
TRILAB-192 fix JNI shadow warning
-rw-r--r-- | config/gnu-warnings/error-5 | 7 | ||||
-rw-r--r-- | java/src/jni/h5aImp.c | 1 | ||||
-rw-r--r-- | java/src/jni/h5eImp.c | 1 | ||||
-rw-r--r-- | java/src/jni/h5lImp.c | 1 | ||||
-rw-r--r-- | java/src/jni/h5oImp.c | 1 |
5 files changed, 1 insertions, 10 deletions
diff --git a/config/gnu-warnings/error-5 b/config/gnu-warnings/error-5 index 74137b5..f7e1138 100644 --- a/config/gnu-warnings/error-5 +++ b/config/gnu-warnings/error-5 @@ -9,9 +9,4 @@ # is not a supported compiler, so let us promote shadowed globals # warnings to errors only for GCC 5 and later. # -# -# -# NOTE: JNI files are not compatible with these warnings as errors -# jni/h5aImp.c,jni/h5eImp.c,jni/h5lImp.c,jni/h5oImp.c -# -Werror=shadow --Wshadow +-Werror=shadow diff --git a/java/src/jni/h5aImp.c b/java/src/jni/h5aImp.c index fb933ad..0da763c 100644 --- a/java/src/jni/h5aImp.c +++ b/java/src/jni/h5aImp.c @@ -2167,7 +2167,6 @@ H5A_iterate_cb jobject visit_callback = wrapper->visit_callback; jstring str; JNIEnv *cbenv = NULL; - jclass cls; jvalue args[4]; void *op_data = (void *)wrapper->op_data; jint status = -1; diff --git a/java/src/jni/h5eImp.c b/java/src/jni/h5eImp.c index 7ea4223..1e12f66 100644 --- a/java/src/jni/h5eImp.c +++ b/java/src/jni/h5eImp.c @@ -523,7 +523,6 @@ H5E_walk_cb jobject cb_info_t = NULL; jvalue args[7]; JNIEnv *cbenv = NULL; - jclass cls; void *op_data = (void *)wrapper->op_data; jint status = FAIL; diff --git a/java/src/jni/h5lImp.c b/java/src/jni/h5lImp.c index e60e1ab..6606664 100644 --- a/java/src/jni/h5lImp.c +++ b/java/src/jni/h5lImp.c @@ -672,7 +672,6 @@ H5L_iterate_cb jobject visit_callback = wrapper->visit_callback; jstring str; JNIEnv *cbenv = NULL; - jclass cls; jvalue args[5]; void *op_data = (void *)wrapper->op_data; jint status = -1; diff --git a/java/src/jni/h5oImp.c b/java/src/jni/h5oImp.c index 1d828a1..08482d1 100644 --- a/java/src/jni/h5oImp.c +++ b/java/src/jni/h5oImp.c @@ -548,7 +548,6 @@ H5O_iterate_cb jobject token; jstring str; JNIEnv *cbenv = NULL; - jclass cls; jvalue args[12]; void *op_data = (void *)wrapper->op_data; jint status = FAIL; |