diff options
author | H. Joe Lee <hyoklee@hdfgroup.org> | 2021-11-05 13:31:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 13:31:01 (GMT) |
commit | a8d03d30ffae22682d044782a17cefa1854de8ea (patch) | |
tree | 75c5ad5a33460bfead9bf3b14be83c3cdcbd8ee0 /src/H5private.h | |
parent | b3f35a97a9e2f1f0592fa22c1fbbe950ff8efc22 (diff) | |
download | hdf5-a8d03d30ffae22682d044782a17cefa1854de8ea.zip hdf5-a8d03d30ffae22682d044782a17cefa1854de8ea.tar.gz hdf5-a8d03d30ffae22682d044782a17cefa1854de8ea.tar.bz2 |
OESS-168: Remove clang warnings. (#1124)
* OESS-168: Remove clang warnings.
* OESS-168: Remove clang warnings.
* Committing clang-format changes
* OESS-168: Address @derobins review for FALLTHROUGH.
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h index 2318f10..792cf00 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -252,10 +252,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*/ |