From 9cc63d81fb1f311e849e2d098d31e6cfd4f549b5 Mon Sep 17 00:00:00 2001 From: kmu Date: Wed, 22 Jan 2020 12:55:21 -0600 Subject: fix float type cmp warning --- tools/test/perform/pio_perf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/test/perform/pio_perf.c b/tools/test/perform/pio_perf.c index 5977731..74855cb 100644 --- a/tools/test/perform/pio_perf.c +++ b/tools/test/perform/pio_perf.c @@ -59,6 +59,7 @@ #include #include +#include "H5private.h" #include "hdf5.h" #ifdef H5_HAVE_PARALLEL @@ -82,6 +83,7 @@ /* report 0.0 in case t is zero too */ #define MB_PER_SEC(bytes,t) (((t)==0.0) ? 0.0 : ((((double)bytes) / ONE_MB) / (t))) +#define MB_PER_SEC(bytes,t) (H5_DBL_ABS_EQUAL((t), 0.0) ? 0.0 : ((((double)bytes) / ONE_MB) / (t))) #ifndef TRUE #define TRUE 1 -- cgit v0.12