summaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-07-03 21:26:53 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-07-03 21:26:53 (GMT)
commit5d6ed0b298e3a40051a975a466820030360e8a31 (patch)
tree7d7298f9d633fb6ade7be962cdbaf6f0d21128ab /java/src
parent99e44094f2a9552b77fc7b7a0ef70dcf29a97358 (diff)
downloadhdf5-5d6ed0b298e3a40051a975a466820030360e8a31.zip
hdf5-5d6ed0b298e3a40051a975a466820030360e8a31.tar.gz
hdf5-5d6ed0b298e3a40051a975a466820030360e8a31.tar.bz2
Turned off unused parameter warnings in gcc for Java constants.
None of the constant functions use their parameters, so emitting warnings for them generates a large amount of noise. Since these are trivial wrappers, marking them up with H5_ATTR_UNUSED would be a huge waste of time.
Diffstat (limited to 'java/src')
-rw-r--r--java/src/jni/h5Constants.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/src/jni/h5Constants.c b/java/src/jni/h5Constants.c
index d4511e1..f6f8bfa 100644
--- a/java/src/jni/h5Constants.c
+++ b/java/src/jni/h5Constants.c
@@ -26,6 +26,7 @@ extern "C" {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
+#pragma GCC diagnostic ignored "-Wunused-parameter"
JNIEXPORT jlong JNICALL
Java_hdf_hdf5lib_HDF5Constants_H5_1QUARTER_1HADDR_1MAX(JNIEnv *env, jclass cls) { return (hsize_t)HADDR_MAX/4; }