summaryrefslogtreecommitdiffstats
path: root/src/H5Gent.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2022-04-26 18:18:18 (GMT)
committerGitHub <noreply@github.com>2022-04-26 18:18:18 (GMT)
commitd7565f316de2516f119e464e6450c4f8c73476b2 (patch)
treefcec98687ef88e0c8f5a1b377d48f5349fdae356 /src/H5Gent.c
parent417ee1393b425d5c7c998562e7fb492e28928643 (diff)
downloadhdf5-d7565f316de2516f119e464e6450c4f8c73476b2.zip
hdf5-d7565f316de2516f119e464e6450c4f8c73476b2.tar.gz
hdf5-d7565f316de2516f119e464e6450c4f8c73476b2.tar.bz2
Address some warnings from casting away of const (#1684)
Diffstat (limited to 'src/H5Gent.c')
-rw-r--r--src/H5Gent.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/H5Gent.c b/src/H5Gent.c
index 2f1a2b4..2e06092 100644
--- a/src/H5Gent.c
+++ b/src/H5Gent.c
@@ -300,7 +300,7 @@ done:
*-------------------------------------------------------------------------
*/
void
-H5G__ent_copy(H5G_entry_t *dst, const H5G_entry_t *src, H5_copy_depth_t depth)
+H5G__ent_copy(H5G_entry_t *dst, H5G_entry_t *src, H5_copy_depth_t depth)
{
FUNC_ENTER_PACKAGE_NOERR
@@ -318,8 +318,7 @@ H5G__ent_copy(H5G_entry_t *dst, const H5G_entry_t *src, H5_copy_depth_t depth)
;
}
else if (depth == H5_COPY_SHALLOW) {
- /* Discarding 'const' qualifier OK - QAK */
- H5G__ent_reset((H5G_entry_t *)src);
+ H5G__ent_reset(src);
} /* end if */
FUNC_LEAVE_NOAPI_VOID