diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-09-29 15:24:49 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-09-29 15:24:49 (GMT) |
commit | 274cd0ba1d83fa515df43bbd50284bc6c36e4061 (patch) | |
tree | d596172c2426b5451a0cb7aec3f41bc94e04d1da /java/src | |
parent | 14851e3b82a9b116153f9505654faf2f60e1abe2 (diff) | |
download | hdf5-274cd0ba1d83fa515df43bbd50284bc6c36e4061.zip hdf5-274cd0ba1d83fa515df43bbd50284bc6c36e4061.tar.gz hdf5-274cd0ba1d83fa515df43bbd50284bc6c36e4061.tar.bz2 |
Pre-format fixes for warnings as errors
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/jni/h5util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/jni/h5util.c b/java/src/jni/h5util.c index f45902f..eccf7ef 100644 --- a/java/src/jni/h5util.c +++ b/java/src/jni/h5util.c @@ -784,8 +784,10 @@ 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) H5_JNI_FATAL_ERROR(ENVONLY, "h5str_sprintf: HDsprintf failure"); + H5_GCC_DIAG_ON("format-overflow") break; } |