diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2019-08-09 13:32:58 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2019-08-09 13:32:58 (GMT) |
commit | 318dfdaba115a17944a11706fe0519725f5edb31 (patch) | |
tree | 74414caec73e57a53e8c41753424dbf5ec1cc25c | |
parent | 6f4f4adaa2b6ce1d6062c84e8cbcf33d48e66fb7 (diff) | |
parent | c56509b490d6834340dedcd3120893028ccb6e8c (diff) | |
download | hdf5-318dfdaba115a17944a11706fe0519725f5edb31.zip hdf5-318dfdaba115a17944a11706fe0519725f5edb31.tar.gz hdf5-318dfdaba115a17944a11706fe0519725f5edb31.tar.bz2 |
Merge pull request #1847 in HDFFV/hdf5 from ~BRTNFLD/hdf5_msb:develop to develop
* commit 'c56509b490d6834340dedcd3120893028ccb6e8c':
Added gcc conditional for __attribute__((fallthrough)), removes 34 warnings on theta (10% of warnings).
-rw-r--r-- | src/H5private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index 86cd615..00b7a07 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -317,8 +317,12 @@ # define H5_ATTR_NORETURN __attribute__((noreturn)) # define H5_ATTR_CONST __attribute__((const)) # define H5_ATTR_PURE __attribute__((pure)) +#if defined(__GNUC__) && __GNUC__ >= 7 # define H5_ATTR_FALLTHROUGH __attribute__((fallthrough)); #else +# define H5_ATTR_FALLTHROUGH /*void*/ +#endif +#else # define H5_ATTR_FORMAT(X,Y,Z) /*void*/ # define H5_ATTR_UNUSED /*void*/ # define H5_ATTR_NORETURN /*void*/ |