TRILAB-192 fix JNI shadow warning

This commit is contained in:
Allen Byrne 2020-03-24 17:03:09 -05:00
parent 1505fa1498
commit 0d6adfc610
5 changed files with 1 additions and 10 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;