diff options
author | kmu <kmu@hdfgroup.org> | 2020-01-13 19:20:19 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2020-01-13 19:20:19 (GMT) |
commit | 9712fad601a7844dc01deb1dc4d81b5aa5402b5e (patch) | |
tree | a5020737164f843254a67695e4cae4586f568c3e /src/H5B.c | |
parent | b0e5b2d9338bf352a4154a838c4146c84be8705b (diff) | |
download | hdf5-9712fad601a7844dc01deb1dc4d81b5aa5402b5e.zip hdf5-9712fad601a7844dc01deb1dc4d81b5aa5402b5e.tar.gz hdf5-9712fad601a7844dc01deb1dc4d81b5aa5402b5e.tar.bz2 |
fix unused related warnings
Diffstat (limited to 'src/H5B.c')
-rw-r--r-- | src/H5B.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -2020,7 +2020,6 @@ H5B_valid(H5F_t *f, const H5B_class_t *type, haddr_t addr) { H5B_t *bt = NULL; /* The B-tree */ H5UC_t *rc_shared; /* Ref-counted shared info */ - H5B_shared_t *shared; /* Pointer to shared B-tree info */ H5B_cache_ud_t cache_udata; /* User-data for metadata cache callback */ htri_t ret_value = SUCCEED; /* Return value */ @@ -2038,8 +2037,7 @@ H5B_valid(H5F_t *f, const H5B_class_t *type, haddr_t addr) /* Get shared info for B-tree */ if(NULL == (rc_shared = (type->get_shared)(f, NULL))) HGOTO_ERROR(H5E_BTREE, H5E_CANTGET, FAIL, "can't retrieve B-tree's shared ref. count object") - shared = (H5B_shared_t *)H5UC_GET_OBJ(rc_shared); - HDassert(shared); + HDassert((H5B_shared_t *)H5UC_GET_OBJ(rc_shared)); /* * Load the tree node. |