diff options
author | Sean McBride <sean@rogue-research.com> | 2023-07-24 21:18:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 21:18:04 (GMT) |
commit | 553e1cd31150f7ca58f87f40d63dd8f200721611 (patch) | |
tree | 12b0aa9c90279d015bf6596e2b60d443d384c0c1 /src/H5Tinit_float.c | |
parent | e0083c48e90beb5b56bf93eccdbfa89baa79750a (diff) | |
download | hdf5-553e1cd31150f7ca58f87f40d63dd8f200721611.zip hdf5-553e1cd31150f7ca58f87f40d63dd8f200721611.tar.gz hdf5-553e1cd31150f7ca58f87f40d63dd8f200721611.tar.bz2 |
Another round of fixing -Wextra-semi-stmt warnings (#3264)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5Tinit_float.c')
-rw-r--r-- | src/H5Tinit_float.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5Tinit_float.c b/src/H5Tinit_float.c index 5b2b83d..9c1ef34 100644 --- a/src/H5Tinit_float.c +++ b/src/H5Tinit_float.c @@ -58,7 +58,7 @@ *------------------------------------------------------------------------- */ #define DETECT_F(TYPE, VAR, INFO) \ - { \ + do { \ TYPE _v1, _v2, _v3; \ unsigned char _buf1[sizeof(TYPE)], _buf3[sizeof(TYPE)]; \ unsigned char _pad_mask[sizeof(TYPE)]; \ @@ -138,7 +138,7 @@ INFO.ebias = H5T__find_bias(INFO.epos, INFO.esize, INFO.perm, &_v1); \ H5T__set_precision(&(INFO)); \ COMP_ALIGNMENT(TYPE, INFO.comp_align); \ - } + } while (0) /* Detect alignment for C structure */ #define COMP_ALIGNMENT(TYPE, COMP_ALIGN) \ @@ -228,7 +228,7 @@ H5T__byte_cmp(int n, const void *_a, const void *_b, const unsigned char *pad_ma HGOTO_DONE(i); done: - FUNC_LEAVE_NOAPI(ret_value); + FUNC_LEAVE_NOAPI(ret_value) } /*------------------------------------------------------------------------- @@ -276,7 +276,7 @@ H5T__bit_cmp(unsigned nbytes, int *perm, void *_a, void *_b, const unsigned char HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "didn't find a value for `first`") done: - FUNC_LEAVE_NOAPI(ret_value); + FUNC_LEAVE_NOAPI(ret_value) } /*------------------------------------------------------------------------- @@ -332,7 +332,7 @@ H5T__fix_order(int n, int last, int *perm, H5T_order_t *order) } done: - FUNC_LEAVE_NOAPI(ret_value); + FUNC_LEAVE_NOAPI(ret_value) } /*------------------------------------------------------------------------- @@ -422,7 +422,7 @@ H5T__find_bias(unsigned epos, unsigned esize, int *perm, void *_a) epos += nbits; } - FUNC_LEAVE_NOAPI(bias); + FUNC_LEAVE_NOAPI(bias) } /*------------------------------------------------------------------------- @@ -568,5 +568,5 @@ done: } } - FUNC_LEAVE_NOAPI(ret_value); + FUNC_LEAVE_NOAPI(ret_value) } /* end H5T__init_native_float_types() */ |