diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-22 21:31:00 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-11-22 21:31:00 (GMT) |
commit | edd529714302f9ed218d1e61d5f496fa788d10b4 (patch) | |
tree | 7850c0ea94463e851cb6b1a892643df5ebfa162a /src/H5HGcache.c | |
parent | 6d5ec83fc3537ec7fc6e9f1802ae36ef9b54acb4 (diff) | |
download | hdf5-edd529714302f9ed218d1e61d5f496fa788d10b4.zip hdf5-edd529714302f9ed218d1e61d5f496fa788d10b4.tar.gz hdf5-edd529714302f9ed218d1e61d5f496fa788d10b4.tar.bz2 |
Quiet some more maybe-uninitialized warnings---each is a false positive,
*sigh*. This is more code that may not compile with VS2010, *sigh
sigh*.
Diffstat (limited to 'src/H5HGcache.c')
-rw-r--r-- | src/H5HGcache.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5HGcache.c b/src/H5HGcache.c index 29e88df..a6c9996 100644 --- a/src/H5HGcache.c +++ b/src/H5HGcache.c @@ -205,7 +205,11 @@ static herr_t H5HG__cache_heap_get_final_load_size(const void *image, size_t image_len, void *udata, size_t *actual_len) { - H5HG_heap_t heap; /* Global heap */ + /* Global heap, initialized because GCC 5.5 cannot see that + * H5HG__hdr_deserialize() initializes. TBD condition on compiler + * version. + */ + H5HG_heap_t heap = {.size = 0}; herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_STATIC |