diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-23 23:23:35 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-01-23 23:23:35 (GMT) |
commit | 3e22f567c4359c464507bf34f3dc97eb00296143 (patch) | |
tree | e5f3c42bf7ff3d311ed0f262a92f59aef5b7002f /src | |
parent | 9a97411a61b886c4f2b5417dce29157a010b47c1 (diff) | |
parent | 601752e76e2e3f34c8bcd2b5b46cf73cad122cb2 (diff) | |
download | hdf5-3e22f567c4359c464507bf34f3dc97eb00296143.zip hdf5-3e22f567c4359c464507bf34f3dc97eb00296143.tar.gz hdf5-3e22f567c4359c464507bf34f3dc97eb00296143.tar.bz2 |
Merge pull request #2302 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:develop_minor to develop
* commit '601752e76e2e3f34c8bcd2b5b46cf73cad122cb2':
Removed H5_DEC_ENUM
Revert "Revert "Moved -Wunsuffixed-float-constants to the developer warnings.""
Diffstat (limited to 'src')
-rw-r--r-- | src/H5private.h | 22 | ||||
-rw-r--r-- | src/H5trace.c | 2 |
2 files changed, 1 insertions, 23 deletions
diff --git a/src/H5private.h b/src/H5private.h index c3375df..fbea9b8 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -534,28 +534,6 @@ #define H5_REQUEST_NULL NULL /* - * A macro to portably decrement enumerated types. - */ -#ifndef H5_DEC_ENUM -# define H5_DEC_ENUM(TYPE,VAR) (VAR)=((TYPE)((VAR)-1)) -#endif - -/* Double constant wrapper - * - * Quiets gcc warnings from -Wunsuffixed-float-constants. - * - * This is a really annoying warning since the standard specifies that - * constants of type double do NOT get a suffix so there's no way - * to specify a constant of type double. To quiet gcc, we specify floating - * point constants as type long double and cast to double. - * - * Note that this macro only needs to be used where using a double - * is important. For most code, suffixing constants with F will quiet the - * compiler and not produce erroneous code. - */ -#define H5_DOUBLE(S) ((double) S ## L) - -/* * Methods to compare the equality of floating-point values: * * 1. H5_XXX_ABS_EQUAL - check if the difference is smaller than the diff --git a/src/H5trace.c b/src/H5trace.c index 4a24804..ec5c6a2 100644 --- a/src/H5trace.c +++ b/src/H5trace.c @@ -155,7 +155,7 @@ H5_trace(const double *returning, const char *func, const char *type, ...) } /* end if */ /* Get time for event */ - if(H5_DBL_ABS_EQUAL(first_time.etime, H5_DOUBLE(0.0))) + if(H5_DBL_ABS_EQUAL(first_time.etime, 0.0)) H5_timer_begin(&first_time); if(H5_debug_g.ttimes) H5_timer_begin(&event_time); |