diff options
author | M. Scot Breitenfeld <brtnfld@hdfgroup.org> | 2019-08-13 15:10:23 (GMT) |
---|---|---|
committer | M. Scot Breitenfeld <brtnfld@hdfgroup.org> | 2019-08-14 13:52:53 (GMT) |
commit | afdd58b09a77b9e1b9e3e05a9a417284ab5220ea (patch) | |
tree | e368e9facc960a51935be9fa6cdb3f52c94201a9 /src | |
parent | ec76b77cff35c75d9b8464c7810c61aec52b0eb5 (diff) | |
download | hdf5-afdd58b09a77b9e1b9e3e05a9a417284ab5220ea.zip hdf5-afdd58b09a77b9e1b9e3e05a9a417284ab5220ea.tar.gz hdf5-afdd58b09a77b9e1b9e3e05a9a417284ab5220ea.tar.bz2 |
Added ifdef for intel compilers, __GNUC__ has to be defined for header files which use it to work with intel compilers. This gives a warning for intel compiler about fallthrough, so added a check not to include fallthrough if using intel compilers.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index a9f1577..0eb0b0c 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -313,7 +313,7 @@ # define H5_ATTR_NORETURN __attribute__((noreturn)) # define H5_ATTR_CONST __attribute__((const)) # define H5_ATTR_PURE __attribute__((pure)) -#if defined(__GNUC__) && __GNUC__ >= 7 +#if defined(__GNUC__) && __GNUC__ >= 7 && !defined(__INTEL_COMPILER) # define H5_ATTR_FALLTHROUGH __attribute__((fallthrough)); #else # define H5_ATTR_FALLTHROUGH /*void*/ |