diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-08-03 18:30:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 18:30:34 (GMT) |
commit | 27b2d6735cbc326dbfa3f8e0a07ca7ba82ffe253 (patch) | |
tree | 1ece8273bcfba450d48d1c848ea2ec3aad017d83 /test/API/tconfig.c | |
parent | 7fc8531b767855e69fb4016783a1131ba581fd5b (diff) | |
download | hdf5-27b2d6735cbc326dbfa3f8e0a07ca7ba82ffe253.zip hdf5-27b2d6735cbc326dbfa3f8e0a07ca7ba82ffe253.tar.gz hdf5-27b2d6735cbc326dbfa3f8e0a07ca7ba82ffe253.tar.bz2 |
Merge Fixes the last of the -Wextra-semi-stmt warnings #3326 (#3338)
Diffstat (limited to 'test/API/tconfig.c')
-rw-r--r-- | test/API/tconfig.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/API/tconfig.c b/test/API/tconfig.c index 2438e33..3d49524 100644 --- a/test/API/tconfig.c +++ b/test/API/tconfig.c @@ -25,13 +25,18 @@ * with the macro size. */ #define vrfy_cint_type(ctype, uctype, ctype_macro) \ - /* check signed type size */ \ - vrfy_macrosize(ctype, ctype_macro, #ctype_macro); \ - /* check unsigned type size */ \ - vrfy_macrosize(uctype, ctype_macro, #ctype_macro); + do { \ + /* check signed type size */ \ + vrfy_macrosize(ctype, ctype_macro, #ctype_macro); \ + /* check unsigned type size */ \ + vrfy_macrosize(uctype, ctype_macro, #ctype_macro); \ + } while (0) /* verify C type sizes: verify the sizeof type with the macro size. */ -#define vrfy_ctype(type, macro) vrfy_macrosize(type, macro, #macro); +#define vrfy_ctype(type, macro) \ + do { \ + vrfy_macrosize(type, macro, #macro); \ + } while (0) /* verify if the sizeof(type) matches size defined in macro. */ /* Needs this extra step so that we can print the macro name. */ |