summaryrefslogtreecommitdiffstats
path: root/testpar/testpar.h
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-04-16 13:50:18 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-04-16 13:50:18 (GMT)
commit2e51459b8aecb2835bca06bf6a866900adad0b8b (patch)
tree5a1d3990bc6abe274d2495063426606934e22425 /testpar/testpar.h
parent82bace8f563f16a5326e165cc818f75d8fc2f8db (diff)
downloadhdf5-2e51459b8aecb2835bca06bf6a866900adad0b8b.zip
hdf5-2e51459b8aecb2835bca06bf6a866900adad0b8b.tar.gz
hdf5-2e51459b8aecb2835bca06bf6a866900adad0b8b.tar.bz2
Fix Werror issues, whitespace, casts and unused vars
Diffstat (limited to 'testpar/testpar.h')
-rw-r--r--testpar/testpar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/testpar/testpar.h b/testpar/testpar.h
index 86677d1..2c1bce2 100644
--- a/testpar/testpar.h
+++ b/testpar/testpar.h
@@ -44,12 +44,12 @@
* This will allow program to continue and can be used for debugging.
* (The "do {...} while(0)" is to group all the statements as one unit.)
*/
-#define VRFY(val, mesg) do { \
+#define VRFY_IMPL(val, mesg, rankvar) do { \
if (val) { \
MESG(mesg); \
} \
else { \
- HDprintf("Proc %d: ", mpi_rank); \
+ HDprintf("Proc %d: ", rankvar); \
HDprintf("*** Parallel ERROR ***\n"); \
HDprintf(" VRFY (%s) failed at line %4d in %s\n", \
mesg, (int)__LINE__, __FILE__); \
@@ -62,6 +62,9 @@
} \
} while(0)
+#define VRFY_G(val, mesg) VRFY_IMPL(val, mesg, mpi_rank_g)
+#define VRFY(val, mesg) VRFY_IMPL(val, mesg, mpi_rank)
+
/*
* Checking for information purpose.
* If val is false, print mesg; else nothing.