summaryrefslogtreecommitdiffstats
path: root/src/H5VLint.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-01-31 00:31:11 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-01-31 00:31:11 (GMT)
commit88b4c915e88681557e23702c571b458763a294b2 (patch)
tree65195b2c6ee9c29fe0eaab1807d0c43b6ca56997 /src/H5VLint.c
parent9da387342eea566659daed83c850220cee041059 (diff)
downloadhdf5-88b4c915e88681557e23702c571b458763a294b2.zip
hdf5-88b4c915e88681557e23702c571b458763a294b2.tar.gz
hdf5-88b4c915e88681557e23702c571b458763a294b2.tar.bz2
Updated the 'const memory free' changes based on PR feedback.
Diffstat (limited to 'src/H5VLint.c')
-rw-r--r--src/H5VLint.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/H5VLint.c b/src/H5VLint.c
index df1f7a4..6572faa 100644
--- a/src/H5VLint.c
+++ b/src/H5VLint.c
@@ -670,7 +670,6 @@ done:
*
*-------------------------------------------------------------------------
*/
-H5_GCC_DIAG_OFF(cast-qual)
herr_t
H5VL_conn_free(const H5VL_connector_prop_t *connector_prop)
{
@@ -682,8 +681,8 @@ H5VL_conn_free(const H5VL_connector_prop_t *connector_prop)
/* Free the connector info (if it exists) and decrement the ID */
if(connector_prop->connector_id > 0) {
if(connector_prop->connector_info)
- /* Free the connector info, ignoring the const */
- if(H5VL_free_connector_info(connector_prop->connector_id, (void *)connector_prop->connector_info) < 0)
+ /* Free the connector info */
+ if(H5VL_free_connector_info(connector_prop->connector_id, connector_prop->connector_info) < 0)
HGOTO_ERROR(H5E_VOL, H5E_CANTRELEASE, FAIL, "unable to release VOL connector info object")
/* Decrement reference count for connector ID */
@@ -695,7 +694,6 @@ H5VL_conn_free(const H5VL_connector_prop_t *connector_prop)
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5VL_conn_free() */
-H5_GCC_DIAG_ON(cast-qual)
/*-------------------------------------------------------------------------