mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
Merge pull request #1861 in HDFFV/hdf5 from ~BRTNFLD/hdf5_msb:develop to develop
* commit 'df7ce9a5c933315af34dd402cfb2ca394003b56b': 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.
This commit is contained in:
commit
60b62b10f1
@ -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*/
|
||||
|
Loading…
Reference in New Issue
Block a user