diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2019-08-09 15:01:37 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2019-08-09 15:01:37 (GMT) |
commit | dd0c820c4b9c555d168c6cc6a2354a22b9da0a82 (patch) | |
tree | b78a8ed9427c62176481b0cf1562e1beb9fdb06c | |
parent | be970ccdc253697f2a02d0f909f5cfc47793376e (diff) | |
parent | 8a0663b93851adc152e38a2bd9607cd1d73bad36 (diff) | |
download | hdf5-dd0c820c4b9c555d168c6cc6a2354a22b9da0a82.zip hdf5-dd0c820c4b9c555d168c6cc6a2354a22b9da0a82.tar.gz hdf5-dd0c820c4b9c555d168c6cc6a2354a22b9da0a82.tar.bz2 |
Merge pull request #1849 in HDFFV/hdf5 from ~BRTNFLD/hdf5_msb:hdf5_1_10 to hdf5_1_10
* commit '8a0663b93851adc152e38a2bd9607cd1d73bad36':
Added gcc conditional for __attribute__((fallthrough)), removes 34 warnings on theta (10% of warnings).
-rw-r--r-- | src/H5private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index 06fd06f..a9f1577 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -313,6 +313,11 @@ # 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*/ |