diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-07-09 22:19:14 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-07-09 22:19:14 (GMT) |
commit | e9313f3147cc54a695d5f253ffd51891f92637b5 (patch) | |
tree | 45f65f383e7a577c29cb5ffbfb1d2a4a30ab51f2 /src | |
parent | 252c57f8d0bc9fb650e15b7536b7b26a07e34eac (diff) | |
download | hdf5-e9313f3147cc54a695d5f253ffd51891f92637b5.zip hdf5-e9313f3147cc54a695d5f253ffd51891f92637b5.tar.gz hdf5-e9313f3147cc54a695d5f253ffd51891f92637b5.tar.bz2 |
Fixed Duff's device fall through warnings in hyperslab code.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Shyper.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c index 10b961b..4a14c03 100644 --- a/src/H5Shyper.c +++ b/src/H5Shyper.c @@ -8659,15 +8659,15 @@ H5S__hyper_get_seq_list_opt(const H5S_t *space, H5S_sel_iter_t *iter, /* Read in data until an entire sequence can't be written out any longer */ while(curr_rows > 0) { -#define DUFF_GUTS \ -/* Store the sequence information */ \ -off[curr_seq] = loc; \ -len[curr_seq] = actual_bytes; \ - \ -/* Increment sequence count */ \ -curr_seq++; \ - \ -/* Increment information to reflect block just processed */ \ +#define DUFF_GUTS \ +/* Store the sequence information */ \ +off[curr_seq] = loc; \ +len[curr_seq] = actual_bytes; \ + \ +/* Increment sequence count */ \ +curr_seq++; \ + \ +/* Increment information to reflect block just processed */ \ loc += fast_dim_buf_off; #ifdef NO_DUFFS_DEVICE @@ -8691,18 +8691,25 @@ loc += fast_dim_buf_off; do { DUFF_GUTS + H5_ATTR_FALLTHROUGH case 7: DUFF_GUTS + H5_ATTR_FALLTHROUGH case 6: DUFF_GUTS + H5_ATTR_FALLTHROUGH case 5: DUFF_GUTS + H5_ATTR_FALLTHROUGH case 4: DUFF_GUTS + H5_ATTR_FALLTHROUGH case 3: DUFF_GUTS + H5_ATTR_FALLTHROUGH case 2: DUFF_GUTS + H5_ATTR_FALLTHROUGH case 1: DUFF_GUTS } while (--duffs_index > 0); |