summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2021-11-13 23:08:48 (GMT)
committerGitHub <noreply@github.com>2021-11-13 23:08:48 (GMT)
commit899636e4042ec7603516523a13995967a53d9543 (patch)
tree4fa29024c0bb4b78b76f86c45c58d0a4eeda7244 /src/H5private.h
parent70910573e0cdc7f6647f54046f23a0885176a4a7 (diff)
downloadhdf5-899636e4042ec7603516523a13995967a53d9543.zip
hdf5-899636e4042ec7603516523a13995967a53d9543.tar.gz
hdf5-899636e4042ec7603516523a13995967a53d9543.tar.bz2
1.12 TRILAB-266: Remove clang warnings. (#1193)
* TRILAB-266: Remove clang warnings in src/H5Zscaleoffset.c. (PR #1105) * Committing clang-format changes * TRILAB-266: Remove clang warnings in H5private.h and uthash.h. (PR #1124) * TRILAB-266: Remove clang warnings in H5FDcore.c. (PR #1127) * Committing clang-format changes * TRILAB-266: Remove clang warnings in test/testmeta.c. (PR #1135) * TRILAB-266: Remove clang warnings in test/swmr.c. (PR #1136) * TRILAB-266: Remove clang warnings in test/cork.c. (PR #1137) * Committing clang-format changes * TRILAB-266: Remove clang warnings in test/cork.c. (PR #1146) Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h
index c9b4ab3..8bbeab4 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -321,10 +321,10 @@
#define H5_ATTR_NORETURN __attribute__((noreturn))
#define H5_ATTR_CONST __attribute__((const))
#define H5_ATTR_PURE __attribute__((pure))
-#if defined(__GNUC__) && __GNUC__ >= 7 && !defined(__INTEL_COMPILER)
+#if defined(__clang__) || defined(__GNUC__) && __GNUC__ >= 7 && !defined(__INTEL_COMPILER)
#define H5_ATTR_FALLTHROUGH __attribute__((fallthrough));
#else
-#define H5_ATTR_FALLTHROUGH /*void*/
+#define H5_ATTR_FALLTHROUGH /* FALLTHROUGH */
#endif
#else
#define H5_ATTR_FORMAT(X, Y, Z) /*void*/