summaryrefslogtreecommitdiffstats
path: root/src/H5FScache.c
diff options
context:
space:
mode:
authorKimmy Mu <kmu@hdfgroup.org>2020-01-06 18:17:10 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-09 22:15:38 (GMT)
commitde28f691ba42e295341ed1098caa1f3b980cc4eb (patch)
tree52a68c98d4e115da56c27a9310d7e112b82d04bd /src/H5FScache.c
parente75b2e3c2c6e47ccb55dddc40822b41c57ff273d (diff)
downloadhdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.zip
hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.tar.gz
hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.tar.bz2
merge intel warning fix
Diffstat (limited to 'src/H5FScache.c')
-rw-r--r--src/H5FScache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5FScache.c b/src/H5FScache.c
index fa04ba1..551eef1 100644
--- a/src/H5FScache.c
+++ b/src/H5FScache.c
@@ -714,7 +714,7 @@ H5FS__cache_hdr_serialize(const H5F_t *f, void *_image, size_t len,
*image++ = H5FS_HDR_VERSION;
/* Client ID */
- *image++ = fspace->client;
+ H5_CHECKED_ASSIGN(*image++, uint8_t, fspace->client, int);
/* Total space tracked */
H5F_ENCODE_LENGTH(f, image, fspace->tot_space);
@@ -1024,8 +1024,8 @@ H5FS__cache_sinfo_deserialize(const void *_image, size_t len, void *_udata,
/* Walk through the image, deserializing sections */
do {
- hsize_t sect_size; /* Current section size */
- size_t node_count; /* # of sections of this size */
+ hsize_t sect_size = 0; /* Current section size */
+ size_t node_count = 0; /* # of sections of this size */
size_t u; /* Local index variable */
/* The number of sections of this node's size */
@@ -1039,7 +1039,7 @@ H5FS__cache_sinfo_deserialize(const void *_image, size_t len, void *_udata,
/* Loop over nodes of this size */
for(u = 0; u < node_count; u++) {
H5FS_section_info_t *new_sect; /* Section that was deserialized */
- haddr_t sect_addr; /* Address of free space section in the address space */
+ haddr_t sect_addr = 0; /* Address of free space section in the address space */
unsigned sect_type; /* Type of free space section */
unsigned des_flags; /* Flags from deserialize callback */