summaryrefslogtreecommitdiffstats
path: root/src/H5HFcache.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-27 17:26:02 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:17 (GMT)
commit77144641dfb63077623a7b7c3e30a30e4f1a3e10 (patch)
tree9f60d69e4795bbf17595dc5772f610b0a6fa8c8f /src/H5HFcache.c
parente07ca4b4a537733deb8a0af491b60e6e62eb4f3f (diff)
downloadhdf5-77144641dfb63077623a7b7c3e30a30e4f1a3e10.zip
hdf5-77144641dfb63077623a7b7c3e30a30e4f1a3e10.tar.gz
hdf5-77144641dfb63077623a7b7c3e30a30e4f1a3e10.tar.bz2
Revert "Make a squash commit of 'Quiet some warnings by adjusting warnings level and fixing some code.' (commit 5c911d8baf3)"
Diffstat (limited to 'src/H5HFcache.c')
-rw-r--r--src/H5HFcache.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/H5HFcache.c b/src/H5HFcache.c
index 7b18f6b..be41c6b 100644
--- a/src/H5HFcache.c
+++ b/src/H5HFcache.c
@@ -409,7 +409,7 @@ 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 */
+ H5HF_hdr_t hdr; /* Temporary fractal heap header */
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 */
@@ -422,12 +422,6 @@ H5HF__cache_hdr_get_final_load_size(const void *_image, size_t image_len,
HDassert(actual_len);
HDassert(*actual_len == image_len);
- /* Initialize 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.
- */
- hdr.filter_len = 0;
/* Deserialize the fractal heap header's prefix */
if(H5HF__hdr_prefix_decode(&hdr, &image) < 0)
HGOTO_ERROR(H5E_HEAP, H5E_CANTDECODE, FAIL, "can't decode fractal heap header prefix")