summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-07-15 19:49:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-07-15 19:49:04 (GMT)
commite9d6c992d638f25a461c65411678f5fac8282257 (patch)
tree5c714117d1d8997550d77997b85e5a6f8e401d13 /src/H5O.c
parentf9ac366dbd2c27c76048fe2619767943f860583b (diff)
downloadhdf5-e9d6c992d638f25a461c65411678f5fac8282257.zip
hdf5-e9d6c992d638f25a461c65411678f5fac8282257.tar.gz
hdf5-e9d6c992d638f25a461c65411678f5fac8282257.tar.bz2
[svn-r12474]
Clean up some compiler warnings. Tested on: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5O.c')
-rw-r--r--src/H5O.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5O.c b/src/H5O.c
index 14b0b09..e035ed4 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -4077,11 +4077,11 @@ H5O_copy_header_real(const H5O_loc_t *oloc_src, H5O_loc_t *oloc_dst /*out */,
H5O_t *oh_dst = NULL; /* Object header for destination object */
unsigned chunkno = 0, mesgno = 0;
size_t hdr_size;
- haddr_t addr_new;
+ haddr_t addr_new = HADDR_UNDEF;
H5O_mesg_t *mesg_src; /* Message in source object header */
H5O_mesg_t *mesg_dst; /* Message in source object header */
const H5O_msg_class_t *copy_type; /* Type of message to use for copying */
- const H5O_obj_class_t *obj_class; /* Type of object we are copying */
+ const H5O_obj_class_t *obj_class = NULL; /* Type of object we are copying */
void *udata = NULL; /* User data for passing to message callbacks */
herr_t ret_value = SUCCEED;
@@ -4285,6 +4285,7 @@ H5O_copy_header_real(const H5O_loc_t *oloc_src, H5O_loc_t *oloc_dst /*out */,
/* Set the dest. object location to the first chunk address */
+ HDassert(H5F_addr_defined(addr_new));
oloc_dst->addr = addr_new;
/* Allocate space for the address mapping of the object copied */