diff options
Diffstat (limited to 'testpar/t_cache.c')
-rw-r--r-- | testpar/t_cache.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/testpar/t_cache.c b/testpar/t_cache.c index d36f34f..02792b1 100644 --- a/testpar/t_cache.c +++ b/testpar/t_cache.c @@ -31,6 +31,7 @@ #include "H5Iprivate.h" +#define BASE_ADDR (haddr_t)512 int nerrors = 0; @@ -373,12 +374,12 @@ static hbool_t serve_rw_count_reset_request(struct mssg_t * mssg_ptr); /* call back functions & related data structures */ static herr_t clear_datum(H5F_t * f, void * thing, hbool_t dest); -static herr_t destroy_datum(H5F_t UNUSED * f, void * thing); -static herr_t flush_datum(H5F_t *f, hid_t UNUSED dxpl_id, hbool_t dest, haddr_t addr, +static herr_t destroy_datum(H5F_t H5_ATTR_UNUSED * f, void * thing); +static herr_t flush_datum(H5F_t *f, hid_t H5_ATTR_UNUSED dxpl_id, hbool_t dest, haddr_t addr, void *thing); -static void * load_datum(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, haddr_t addr, - void UNUSED *udata); -static herr_t size_datum(H5F_t UNUSED * f, void * thing, size_t * size_ptr); +static void * load_datum(H5F_t H5_ATTR_UNUSED *f, hid_t H5_ATTR_UNUSED dxpl_id, haddr_t addr, + void H5_ATTR_UNUSED *udata); +static herr_t size_datum(H5F_t H5_ATTR_UNUSED * f, void * thing, size_t * size_ptr); #define DATUM_ENTRY_TYPE H5AC_TEST_ID @@ -767,7 +768,7 @@ init_data(void) 1974, 3194, 5168, 8362, 13539}; int i; int j = 0; - haddr_t addr = 512; + haddr_t addr = BASE_ADDR; /* this must hold so moves don't change entry size. */ HDassert( (NUM_DATA_ENTRIES / 2) % 20 == 0 ); @@ -2362,7 +2363,7 @@ clear_datum(H5F_t * f, *------------------------------------------------------------------------- */ static herr_t -destroy_datum(H5F_t UNUSED * f, +destroy_datum(H5F_t H5_ATTR_UNUSED * f, void * thing) { int idx; @@ -2411,9 +2412,9 @@ destroy_datum(H5F_t UNUSED * f, */ static herr_t flush_datum(H5F_t *f, - hid_t UNUSED dxpl_id, + hid_t H5_ATTR_UNUSED dxpl_id, hbool_t dest, - haddr_t UNUSED addr, + haddr_t H5_ATTR_UNUSED addr, void *thing) { const char * fcn_name = "flush_datum()"; @@ -2569,10 +2570,10 @@ flush_datum(H5F_t *f, */ static void * -load_datum(H5F_t UNUSED *f, - hid_t UNUSED dxpl_id, +load_datum(H5F_t H5_ATTR_UNUSED *f, + hid_t H5_ATTR_UNUSED dxpl_id, haddr_t addr, - void UNUSED *udata) + void H5_ATTR_UNUSED *udata) { const char * fcn_name = "load_datum()"; hbool_t success = TRUE; @@ -2747,7 +2748,7 @@ load_datum(H5F_t UNUSED *f, */ static herr_t -size_datum(H5F_t UNUSED * f, +size_datum(H5F_t H5_ATTR_UNUSED * f, void * thing, size_t * size_ptr) { @@ -4709,7 +4710,7 @@ verify_total_writes(int expected_total_writes) * Updated for the new local_len field in datum. * *****************************************************************************/ -void +static void unlock_entry(H5F_t * file_ptr, int32_t idx, unsigned int flags) |