summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-03-24 22:03:09 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-03-24 22:03:09 (GMT)
commit0d6adfc610fc9b344aac7be8f303f5306cdbe5e4 (patch)
tree1ddb92828fbdab6268ac88b3659f9375a5187178
parent1505fa14987c46ee4a698cd272cdaa62d8399ef8 (diff)
downloadhdf5-0d6adfc610fc9b344aac7be8f303f5306cdbe5e4.zip
hdf5-0d6adfc610fc9b344aac7be8f303f5306cdbe5e4.tar.gz
hdf5-0d6adfc610fc9b344aac7be8f303f5306cdbe5e4.tar.bz2
TRILAB-192 fix JNI shadow warning
-rw-r--r--config/gnu-warnings/error-57
-rw-r--r--java/src/jni/h5aImp.c1
-rw-r--r--java/src/jni/h5eImp.c1
-rw-r--r--java/src/jni/h5lImp.c1
-rw-r--r--java/src/jni/h5oImp.c1
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;