diff options
author | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-06-17 17:28:44 (GMT) |
---|---|---|
committer | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-06-17 17:28:44 (GMT) |
commit | 29321bcafa9f1c6108bb92b5a844a9d4d9c2c8e7 (patch) | |
tree | a36cd810789cc8cb202dbb53236fa37f286b49a8 /test | |
parent | 47073183e39484499aacb1fdfa1a817340b2a16b (diff) | |
download | hdf5-29321bcafa9f1c6108bb92b5a844a9d4d9c2c8e7.zip hdf5-29321bcafa9f1c6108bb92b5a844a9d4d9c2c8e7.tar.gz hdf5-29321bcafa9f1c6108bb92b5a844a9d4d9c2c8e7.tar.bz2 |
[svn-r19018] Purpose:
Minor code cleanup
Description:
Add missing declaration of H5AC_ignore_tags()
to H5ACprivate.h
Clean up some warnings in cache_tagging.c
test file.
Tested:
jam, gandalf
Diffstat (limited to 'test')
-rw-r--r-- | test/cache_tagging.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/cache_tagging.c b/test/cache_tagging.c index 0aa04ab..cc1b37c 100644 --- a/test/cache_tagging.c +++ b/test/cache_tagging.c @@ -397,7 +397,6 @@ error: static int verify_tag(hid_t fid, int id, haddr_t tag) { int i = 0; /* Iterator */ - H5C_cache_entry_t *entry_ptr = NULL; /* Entry Pointer */ int found = FALSE; /* If Entry Found */ H5F_t * f = NULL; /* File Pointer */ H5C_t * cache_ptr = NULL; /* Cache Pointer */ @@ -3835,17 +3834,17 @@ check_invalid_tag_application(void) if ( NULL == (f = (H5F_t *)H5I_object(fid)) ) TEST_ERROR; /* Create dxpl */ - if ( dxpl_id = H5Pcreate(H5P_DATASET_XFER) < 0) TEST_ERROR; + if ( (dxpl_id = H5Pcreate(H5P_DATASET_XFER)) < 0) TEST_ERROR; /* Call H5HL_create, an internal function that calls H5AC_set without setting up a tag */ /* Ensure this returns FAILURE, as a tag has not been set up. */ - if ( H5HL_create(f, H5AC_ind_dxpl_id, 1024, &addr) >= 0) TEST_ERROR; + if ( H5HL_create(f, H5AC_ind_dxpl_id, (size_t)1024, &addr) >= 0) TEST_ERROR; /* Now set up a tag in the dxpl */ if ( H5AC_tag(H5AC_ind_dxpl_id, (haddr_t)25, NULL) < 0) TEST_ERROR; /* Verify the same call to H5HL_create now works as intended, with a tag set up. */ - if ( H5HL_create(f, H5AC_ind_dxpl_id, 1024, &addr) < 0) TEST_ERROR; + if ( H5HL_create(f, H5AC_ind_dxpl_id, (size_t)1024, &addr) < 0) TEST_ERROR; /* Reset dxpl to use invalid tag. */ if ( H5AC_tag(H5AC_ind_dxpl_id, H5AC__INVALID_TAG, NULL) < 0) TEST_ERROR; |