summaryrefslogtreecommitdiffstats
path: root/src/H5Fsuper_cache.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-22 21:31:00 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-22 21:31:00 (GMT)
commitedd529714302f9ed218d1e61d5f496fa788d10b4 (patch)
tree7850c0ea94463e851cb6b1a892643df5ebfa162a /src/H5Fsuper_cache.c
parent6d5ec83fc3537ec7fc6e9f1802ae36ef9b54acb4 (diff)
downloadhdf5-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/H5Fsuper_cache.c')
-rw-r--r--src/H5Fsuper_cache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5Fsuper_cache.c b/src/H5Fsuper_cache.c
index ecb98ed..b5e4255 100644
--- a/src/H5Fsuper_cache.c
+++ b/src/H5Fsuper_cache.c
@@ -349,7 +349,11 @@ H5F__cache_superblock_get_final_load_size(const void *_image, size_t image_len,
{
const uint8_t *image = _image; /* Pointer into raw data buffer */
H5F_superblock_cache_ud_t *udata = (H5F_superblock_cache_ud_t *)_udata; /* User data */
- H5F_super_t sblock; /* Temporary file superblock */
+ /* Temporary file superblock, initialized because GCC 5.5 does not
+ * realize that H5F__superblock_prefix_decode() initializes it.
+ * TBD condition on compiler version.
+ */
+ H5F_super_t sblock = {.super_vers = 0, .sizeof_addr = 0, .sizeof_size = 0};
htri_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_STATIC