diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-07-27 00:42:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 00:42:40 (GMT) |
commit | 21aca4f380ac47b0c19d1926b13eaab0750406d0 (patch) | |
tree | 9e0379550949b1679b3329813385aaa46610a3f3 /test | |
parent | ae414872f50187e64cbd6cc8f076c22cf5df2d53 (diff) | |
download | hdf5-21aca4f380ac47b0c19d1926b13eaab0750406d0.zip hdf5-21aca4f380ac47b0c19d1926b13eaab0750406d0.tar.gz hdf5-21aca4f380ac47b0c19d1926b13eaab0750406d0.tar.bz2 |
Misc clang production warning fixes (#1932)
* Misc clang production warning fixes
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/objcopy.c | 6 | ||||
-rw-r--r-- | test/objcopy_ref.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/objcopy.c b/test/objcopy.c index b0050f7..beb272b 100644 --- a/test/objcopy.c +++ b/test/objcopy.c @@ -1678,11 +1678,17 @@ compare_groups(hid_t gid, hid_t gid2, hid_t pid, int depth, unsigned copy_flags) case H5O_TYPE_MAP: HDassert(0 && "maps not supported in native VOL connector"); + /* clang complains about implicit fallthrough here and + * our usual attributes and fall-through comments don't + * quiet the compiler. + */ + H5_CLANG_DIAG_OFF("implicit-fallthrough") case H5O_TYPE_UNKNOWN: case H5O_TYPE_NTYPES: default: HDassert(0 && "Unknown type of object"); break; + H5_CLANG_DIAG_ON("implicit-fallthrough") } /* end switch */ /* Close objects */ diff --git a/test/objcopy_ref.c b/test/objcopy_ref.c index bee722a..12dc836 100644 --- a/test/objcopy_ref.c +++ b/test/objcopy_ref.c @@ -1390,11 +1390,17 @@ compare_groups(hid_t gid, hid_t gid2, hid_t pid, int depth, unsigned copy_flags) case H5O_TYPE_MAP: HDassert(0 && "maps not supported in native VOL connector"); + /* clang complains about implicit fallthrough here and + * our usual attributes and fall-through comments don't + * quiet the compiler. + */ + H5_CLANG_DIAG_OFF("implicit-fallthrough") case H5O_TYPE_UNKNOWN: case H5O_TYPE_NTYPES: default: HDassert(0 && "Unknown type of object"); break; + H5_CLANG_DIAG_ON("implicit-fallthrough") } /* end switch */ /* Close objects */ |