summaryrefslogtreecommitdiffstats
path: root/src/H5B2.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-04-30 21:05:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-04-30 21:05:34 (GMT)
commit98244eb5dd3f1bb8fea991a6efeb6bfb39d0cdf3 (patch)
tree87c24e70d6e8a443e4fd90fd5899b9b983983e48 /src/H5B2.c
parent0fc9d137d3c00ec749152132db222d4a07bdc30f (diff)
downloadhdf5-98244eb5dd3f1bb8fea991a6efeb6bfb39d0cdf3.zip
hdf5-98244eb5dd3f1bb8fea991a6efeb6bfb39d0cdf3.tar.gz
hdf5-98244eb5dd3f1bb8fea991a6efeb6bfb39d0cdf3.tar.bz2
[svn-r10705] Purpose:
Code cleanup Description: Clean up a few compiler warnings of various sorts... Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5B2.c')
-rw-r--r--src/H5B2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/H5B2.c b/src/H5B2.c
index 0692b90..b33e760 100644
--- a/src/H5B2.c
+++ b/src/H5B2.c
@@ -2232,7 +2232,6 @@ H5B2_swap_leaf(H5F_t *f, hid_t dxpl_id, unsigned depth,
const H5AC_class_t *child_class; /* Pointer to child node's class info */
haddr_t child_addr; /* Address of child node */
void *child; /* Pointer to child node */
- unsigned *child_nrec; /* Pointer to child # of records */
uint8_t *child_native; /* Pointer to child's native records */
H5B2_shared_t *shared; /* B-tree's shared info */
herr_t ret_value=SUCCEED; /* Return value */
@@ -2261,7 +2260,6 @@ H5B2_swap_leaf(H5F_t *f, hid_t dxpl_id, unsigned depth,
/* More setup for accessing child node information */
child = child_internal;
- child_nrec = &(child_internal->nrec);
child_native = child_internal->int_native;
/* Mark child node as dirty now */
@@ -2280,7 +2278,6 @@ H5B2_swap_leaf(H5F_t *f, hid_t dxpl_id, unsigned depth,
/* More setup for accessing child node information */
child = child_leaf;
- child_nrec = &(child_leaf->nrec);
child_native = child_leaf->leaf_native;
/* Mark child node as dirty now */
@@ -3297,7 +3294,6 @@ H5B2_remove_leaf(H5F_t *f, hid_t dxpl_id, H5RC_t *bt2_shared,
haddr_t leaf_addr=HADDR_UNDEF; /* Leaf address on disk */
unsigned leaf_unprotect_flags=H5AC__NO_FLAGS_SET; /* Flags for unprotecting leaf node */
H5B2_shared_t *shared; /* Pointer to B-tree's shared information */
- int cmp; /* Comparison value of records */
unsigned idx; /* Location of record which matches key */
herr_t ret_value = SUCCEED;
@@ -3323,7 +3319,7 @@ H5B2_remove_leaf(H5F_t *f, hid_t dxpl_id, H5RC_t *bt2_shared,
HDassert(leaf->nrec == curr_node_ptr->node_nrec);
/* Find correct location to remove this record */
- if((cmp = H5B2_locate_record(shared->type,leaf->nrec,shared->nat_off,leaf->leaf_native,udata,&idx)) != 0)
+ if(H5B2_locate_record(shared->type,leaf->nrec,shared->nat_off,leaf->leaf_native,udata,&idx) != 0)
HGOTO_ERROR(H5E_BTREE, H5E_NOTFOUND, FAIL, "record is not in B-tree")
/* Make callback to retrieve record in native form */