diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-23 18:18:04 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-01-23 18:18:04 (GMT) |
commit | 12bc75c6172ca7b64c33b17cf538a7629500cf2f (patch) | |
tree | bccc949d136c4df61303f6c8132685f5b4ab6bf2 /src/H5private.h | |
parent | 0444f65140e54bb462e91c2e18abac8200aa0cee (diff) | |
download | hdf5-12bc75c6172ca7b64c33b17cf538a7629500cf2f.zip hdf5-12bc75c6172ca7b64c33b17cf538a7629500cf2f.tar.gz hdf5-12bc75c6172ca7b64c33b17cf538a7629500cf2f.tar.bz2 |
Moved -Wunsuffixed-float-constants to the developer warnings.
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/H5private.h b/src/H5private.h index c3375df..bc6c8a5 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -540,21 +540,6 @@ # 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: * |