summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorM. Scot Breitenfeld <brtnfld@hdfgroup.org>2019-08-13 15:10:23 (GMT)
committerM. Scot Breitenfeld <brtnfld@hdfgroup.org>2019-08-13 15:10:23 (GMT)
commitdf7ce9a5c933315af34dd402cfb2ca394003b56b (patch)
treeaf9cdd9f4aa9a7ed13f392ccb0e056504391b2f9 /src/H5private.h
parente874070dbb27994b24860f94ffc53ca1b12211fa (diff)
downloadhdf5-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/H5private.h')
-rw-r--r--src/H5private.h2
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*/