summaryrefslogtreecommitdiffstats
path: root/src/H5Dchunk.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2022-05-03 17:02:01 (GMT)
committerGitHub <noreply@github.com>2022-05-03 17:02:01 (GMT)
commit5f00066eacdf2b2ddb3cf92635bea99eb1aee85e (patch)
treed7dc19a5e765e1f03933f3244ac622e362e33c2f /src/H5Dchunk.c
parent47e3d5e79522d8030a5a455521524a80cd9ef064 (diff)
downloadhdf5-5f00066eacdf2b2ddb3cf92635bea99eb1aee85e.zip
hdf5-5f00066eacdf2b2ddb3cf92635bea99eb1aee85e.tar.gz
hdf5-5f00066eacdf2b2ddb3cf92635bea99eb1aee85e.tar.bz2
Hdf5 1 12 Miscellaneous warnings fixes (#1718)
* Fixes const issues in the version 2 B-trees (#1172) The operations that were changed are fundamentally not const since the shadow operation can modify the node structure when SWMR is in use. * Quiets const warning in H5RS code (#1181) * Avoid calling H5Ropen_object with a misaligned H5R_ref_t: copy the (#1171) * Avoid calling H5Ropen_object with a misaligned H5R_ref_t: copy the raw H5R_ref_t bytes to a heap buffer that's known to have the right alignment. * Committing clang-format changes * Use an automatic H5R_ref_t instead of malloc'ing one. Go ahead and initialize the H5R_ref_t to all-0s so that arbitrary stack content doesn't foul things up. Bail out with an error if `size` exceeds `sizeof(H5R_ref_t)`. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Miscellaneous warnings fixes Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com> Co-authored-by: David Young <dyoung@hdfgroup.org> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5Dchunk.c')
-rw-r--r--src/H5Dchunk.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c
index e6bf26c..ef1a447 100644
--- a/src/H5Dchunk.c
+++ b/src/H5Dchunk.c
@@ -5190,14 +5190,11 @@ done:
static int
H5D__chunk_cmp_coll_fill_info(const void *_entry1, const void *_entry2)
{
- const struct chunk_coll_fill_info *entry1;
- const struct chunk_coll_fill_info *entry2;
+ const struct chunk_coll_fill_info *entry1 = (const struct chunk_coll_fill_info *)_entry1;
+ const struct chunk_coll_fill_info *entry2 = (const struct chunk_coll_fill_info *)_entry2;
FUNC_ENTER_STATIC_NOERR
- entry1 = (const struct chunk_coll_fill_info *)_entry1;
- entry2 = (const struct chunk_coll_fill_info *)_entry2;
-
FUNC_LEAVE_NOAPI(H5F_addr_cmp(entry1->addr, entry2->addr))
} /* end H5D__chunk_cmp_coll_fill_info() */
#endif /* H5_HAVE_PARALLEL */