diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-22 21:31:00 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:19:37 (GMT) |
commit | f77dbfe4acff1d1ecb798e423fc6b511baaf03e0 (patch) | |
tree | b350746c768745fecfc461881727580e5115bef0 /src/H5HFcache.c | |
parent | 765ab7ee4523113280e4861676e45a5552ffb396 (diff) | |
download | hdf5-f77dbfe4acff1d1ecb798e423fc6b511baaf03e0.zip hdf5-f77dbfe4acff1d1ecb798e423fc6b511baaf03e0.tar.gz hdf5-f77dbfe4acff1d1ecb798e423fc6b511baaf03e0.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/H5HFcache.c')
-rw-r--r-- | src/H5HFcache.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/H5HFcache.c b/src/H5HFcache.c index be41c6b..c8558d7 100644 --- a/src/H5HFcache.c +++ b/src/H5HFcache.c @@ -409,7 +409,12 @@ static herr_t H5HF__cache_hdr_get_final_load_size(const void *_image, size_t image_len, void *_udata, size_t *actual_len) { - H5HF_hdr_t hdr; /* Temporary fractal heap header */ + /* Temporary fractal heap header, initialized because GCC 5.5 does + * not realize that the H5HF__hdr_prefix_decode() call is sufficient + * to initialize. GCC 8 is clever enough to see that the variable + * is initialized. TBD condition on compiler version. + */ + H5HF_hdr_t hdr = {.filter_len = 0}; const uint8_t *image = (const uint8_t *)_image; /* Pointer into into supplied image */ H5HF_hdr_cache_ud_t *udata = (H5HF_hdr_cache_ud_t *)_udata; /* User data for callback */ herr_t ret_value = SUCCEED; /* Return value */ |