summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-01-23 18:17:40 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-01-23 18:17:40 (GMT)
commit0444f65140e54bb462e91c2e18abac8200aa0cee (patch)
tree66a8cfc5bb4844ebe24e59163589fbb17cc2f14a /tools/lib
parent4e00ee2916bf4091e64d1c6b89866f4895d44507 (diff)
parentedcba1ce2e11f80d20fcce8f4cfacae1308bf839 (diff)
downloadhdf5-0444f65140e54bb462e91c2e18abac8200aa0cee.zip
hdf5-0444f65140e54bb462e91c2e18abac8200aa0cee.tar.gz
hdf5-0444f65140e54bb462e91c2e18abac8200aa0cee.tar.bz2
Merge branch 'develop' into develop_minor
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5diff_array.c6
-rw-r--r--tools/lib/h5tools_dump.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c
index 8321a98..e99b2cc 100644
--- a/tools/lib/h5diff_array.c
+++ b/tools/lib/h5diff_array.c
@@ -4584,7 +4584,7 @@ static hbool_t equal_double(double value, double expected, diff_opt_t *opts) {
return FALSE;
}
- if (value == expected)
+ if (H5_DBL_ABS_EQUAL(value, expected))
return TRUE;
if (opts->use_system_epsilon)
@@ -4628,7 +4628,7 @@ hbool_t equal_ldouble(long double value, long double expected, diff_opt_t *opts)
return FALSE;
}
- if (value == expected)
+ if (H5_DBL_ABS_EQUAL(value, expected))
return TRUE;
if (opts->use_system_epsilon)
@@ -4670,7 +4670,7 @@ static hbool_t equal_float(float value, float expected, diff_opt_t *opts) {
return FALSE;
}
- if (value == expected)
+ if (H5_FLT_ABS_EQUAL(value, expected))
return TRUE;
if (opts->use_system_epsilon)
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c
index 79802c3..7f29c6b 100644
--- a/tools/lib/h5tools_dump.c
+++ b/tools/lib/h5tools_dump.c
@@ -3312,7 +3312,7 @@ h5tools_dump_dcpl(FILE *stream, const h5tool_format_t *info,
if (vmaps) {
size_t next;
- ssize_t ssize_out;
+ ssize_t H5_ATTR_NDEBUG_UNUSED ssize_out;
ctx->indent_level++;
for (next = 0; next < (unsigned) vmaps; next++) {