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-13 15:10:23 (GMT) |
commit | df7ce9a5c933315af34dd402cfb2ca394003b56b (patch) | |
tree | af9cdd9f4aa9a7ed13f392ccb0e056504391b2f9 /src | |
parent | e874070dbb27994b24860f94ffc53ca1b12211fa (diff) | |
download | hdf5-df7ce9a5c933315af34dd402cfb2ca394003b56b.zip hdf5-df7ce9a5c933315af34dd402cfb2ca394003b56b.tar.gz hdf5-df7ce9a5c933315af34dd402cfb2ca394003b56b.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 00b7a07..a897fb9 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -317,7 +317,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*/ |