summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-13 17:45:29 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-13 17:45:29 (GMT)
commitc5b8f3db3b9be323b621cdd8204e247521df0192 (patch)
treecbb310e186421007bd825c5955ca0fa7ac9a481f /src
parent19e3b93c81784da50893ef3d2913046491b8dd9f (diff)
downloadhdf5-c5b8f3db3b9be323b621cdd8204e247521df0192.zip
hdf5-c5b8f3db3b9be323b621cdd8204e247521df0192.tar.gz
hdf5-c5b8f3db3b9be323b621cdd8204e247521df0192.tar.bz2
Make many warnings about H5T_copy() calls that discard const qualifiers
into a few warnings in H5T_copy() itself.
Diffstat (limited to 'src')
-rw-r--r--src/H5T.c2
-rw-r--r--src/H5Tprivate.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 9263158..3fc59d0 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -3320,7 +3320,7 @@ done:
*-------------------------------------------------------------------------
*/
H5T_t *
-H5T_copy(H5T_t *old_dt, H5T_copy_t method)
+H5T_copy(const H5T_t *old_dt, H5T_copy_t method)
{
H5T_t *new_dt = NULL, *tmp = NULL;
H5T_shared_t *reopened_fo = NULL;
diff --git a/src/H5Tprivate.h b/src/H5Tprivate.h
index d8e98af..86bc174 100644
--- a/src/H5Tprivate.h
+++ b/src/H5Tprivate.h
@@ -109,7 +109,7 @@ H5_DLLVAR H5T_order_t H5T_native_order_g;
/* Private functions */
H5_DLL herr_t H5T_init(void);
-H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
+H5_DLL H5T_t *H5T_copy(const H5T_t *old_dt, H5T_copy_t method);
H5_DLL herr_t H5T_lock(H5T_t *dt, hbool_t immutable);
H5_DLL herr_t H5T_close(H5T_t *dt);
H5_DLL herr_t H5T_close_real(H5T_t *dt);