summaryrefslogtreecommitdiffstats
path: root/test/flushrefresh.c
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2023-07-18 15:35:05 (GMT)
committerGitHub <noreply@github.com>2023-07-18 15:35:05 (GMT)
commit1903c4b1b0bd227b6713364792d241015b4edb5a (patch)
tree4ec8c69091b59707f28c6cea3ee3a0b158a80b73 /test/flushrefresh.c
parentaab497a6312a9d8434a7dc7b5a593713fc8fbce0 (diff)
downloadhdf5-1903c4b1b0bd227b6713364792d241015b4edb5a.zip
hdf5-1903c4b1b0bd227b6713364792d241015b4edb5a.tar.gz
hdf5-1903c4b1b0bd227b6713364792d241015b4edb5a.tar.bz2
Fixed more warnings about extra semicolons (#3249)
* Require semi-colon after H5_CHECK_OVERFLOW calls Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/flushrefresh.c')
-rw-r--r--test/flushrefresh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/flushrefresh.c b/test/flushrefresh.c
index 6454cee..745b6ef 100644
--- a/test/flushrefresh.c
+++ b/test/flushrefresh.c
@@ -66,23 +66,23 @@
static FILE *errorfile;
#define ERRFILE "flushrefresh_ERROR"
#define PROCESS_ERROR \
- { \
+ do { \
errorfile = fopen(ERRFILE, "w+"); \
fprintf(errorfile, "Error occurred in flushrefresh.\n"); \
fflush(errorfile); \
fclose(errorfile); \
TEST_ERROR; \
- }
+ } while (0)
#define CLEANUP_FILES \
- { \
+ do { \
HDremove(ERRFILE); \
HDremove(FILENAME); \
HDremove(SIGNAL_TO_SCRIPT); \
HDremove(SIGNAL_BETWEEN_PROCESSES_1); \
HDremove(SIGNAL_BETWEEN_PROCESSES_2); \
HDremove(SIGNAL_FROM_SCRIPT); \
- }
+ } while (0)
/* ===================== */
/* Function Declarations */
@@ -177,7 +177,7 @@ main(int argc, char *argv[])
else {
/* Illegal number of arguments supplied. Error. */
fprintf(stderr, "Error. %d is an Invalid number of arguments to main().\n", argc);
- PROCESS_ERROR
+ PROCESS_ERROR;
} /* end if */
return EXIT_SUCCESS;