diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-04-27 23:49:25 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-04-27 23:49:25 (GMT) |
commit | 7e5c0ef5598a84ae6aceb7bc10d08e521c2f56dc (patch) | |
tree | 8cbeb16419a4ea4f7fae7420398cc242928c0a08 /testpar/t_mdset.c | |
parent | c034efb0e2be94627d8c97b488f3b1d18a23ff2f (diff) | |
download | hdf5-7e5c0ef5598a84ae6aceb7bc10d08e521c2f56dc.zip hdf5-7e5c0ef5598a84ae6aceb7bc10d08e521c2f56dc.tar.gz hdf5-7e5c0ef5598a84ae6aceb7bc10d08e521c2f56dc.tar.bz2 |
Fix errors: ISO C90 forbids mixed declarations and code
[-Werror=declaration-after-statement]
Diffstat (limited to 'testpar/t_mdset.c')
-rw-r--r-- | testpar/t_mdset.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testpar/t_mdset.c b/testpar/t_mdset.c index 63ac8d3..ed8867d 100644 --- a/testpar/t_mdset.c +++ b/testpar/t_mdset.c @@ -233,6 +233,9 @@ void compact_dataset(void) char dname[]="dataset"; herr_t ret; const char *filename; +#ifdef H5_HAVE_INSTRUMENTED_LIBRARY + hbool_t prop_value; +#endif size = get_size(); @@ -312,7 +315,6 @@ void compact_dataset(void) VRFY((dataset >= 0), "H5Dopen2 succeeded"); #ifdef H5_HAVE_INSTRUMENTED_LIBRARY - hbool_t prop_value; prop_value = H5D_XFER_COLL_RANK0_BCAST_DEF; ret = H5Pinsert2(dxpl, H5D_XFER_COLL_RANK0_BCAST_NAME, H5D_XFER_COLL_RANK0_BCAST_SIZE, &prop_value, NULL, NULL, NULL, NULL, NULL, NULL); @@ -618,6 +620,9 @@ void dataset_fillvalue(void) int acc, i, ii, j, k, l; /* Local index variables */ herr_t ret; /* Generic return value */ const char *filename; +#ifdef H5_HAVE_INSTRUMENTED_LIBRARY + hbool_t prop_value; +#endif MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank); MPI_Comm_size(MPI_COMM_WORLD, &mpi_size); @@ -662,7 +667,6 @@ void dataset_fillvalue(void) VRFY((dxpl >= 0), "H5Pcreate succeeded"); #ifdef H5_HAVE_INSTRUMENTED_LIBRARY - hbool_t prop_value; prop_value = H5D_XFER_COLL_RANK0_BCAST_DEF; ret = H5Pinsert2(dxpl, H5D_XFER_COLL_RANK0_BCAST_NAME, H5D_XFER_COLL_RANK0_BCAST_SIZE, &prop_value, NULL, NULL, NULL, NULL, NULL, NULL); |