diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-09-29 16:42:17 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-09-29 16:42:17 (GMT) |
commit | 3f15fb35222a0fb2ba2f1f88a2d78daaea633ec8 (patch) | |
tree | 68133f7b0915277221a0cfdb2595b011d80e9cfb /java/src | |
parent | 274cd0ba1d83fa515df43bbd50284bc6c36e4061 (diff) | |
download | hdf5-3f15fb35222a0fb2ba2f1f88a2d78daaea633ec8.zip hdf5-3f15fb35222a0fb2ba2f1f88a2d78daaea633ec8.tar.gz hdf5-3f15fb35222a0fb2ba2f1f88a2d78daaea633ec8.tar.bz2 |
Fix jni with %Lg instead of %Lf
Fix warnings due to improper formed define tag in h5diff
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/jni/h5util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/java/src/jni/h5util.c b/java/src/jni/h5util.c index eccf7ef..8c3686d 100644 --- a/java/src/jni/h5util.c +++ b/java/src/jni/h5util.c @@ -784,10 +784,8 @@ h5str_sprintf if (NULL == (this_str = (char *) HDmalloc(27))) H5_OUT_OF_MEMORY_ERROR(ENVONLY, "h5str_sprintf: failed to allocate string buffer"); - H5_GCC_DIAG_OFF("format-overflow") - if (HDsprintf(this_str, "%Lf", tmp_ldouble) < 0) + if (HDsprintf(this_str, "%Lg", tmp_ldouble) < 0) H5_JNI_FATAL_ERROR(ENVONLY, "h5str_sprintf: HDsprintf failure"); - H5_GCC_DIAG_ON("format-overflow") break; } |