summaryrefslogtreecommitdiffstats
path: root/src/H5RS.c
diff options
context:
space:
mode:
authorSongyu Lu <songyulu@hdfgroup.org>2018-11-27 15:04:42 (GMT)
committerSongyu Lu <songyulu@hdfgroup.org>2018-11-27 15:04:42 (GMT)
commit14de476c8cb1b797ad43bea3c71dfb32bcd2131c (patch)
treeea5ba84d3dd32ec5260718416f1795a771fd32d2 /src/H5RS.c
parent9c7161e105aaade595c4f382e76ec3b95990ae91 (diff)
downloadhdf5-14de476c8cb1b797ad43bea3c71dfb32bcd2131c.zip
hdf5-14de476c8cb1b797ad43bea3c71dfb32bcd2131c.tar.gz
hdf5-14de476c8cb1b797ad43bea3c71dfb32bcd2131c.tar.bz2
HDFFV-10607 Fixing two compiler warnings in the library.
Diffstat (limited to 'src/H5RS.c')
-rw-r--r--src/H5RS.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5RS.c b/src/H5RS.c
index 0a3fff0..ae500c5 100644
--- a/src/H5RS.c
+++ b/src/H5RS.c
@@ -137,7 +137,7 @@ done:
REVISION LOG
--------------------------------------------------------------------------*/
H5RS_str_t *
-H5RS_wrap(char *s)
+H5RS_wrap(const char *s)
{
H5RS_str_t *ret_value; /* Return value */
@@ -148,7 +148,7 @@ H5RS_wrap(char *s)
HGOTO_ERROR(H5E_RS, H5E_NOSPACE, NULL, "memory allocation failed")
/* Set the internal fields */
- ret_value->s = s;
+ ret_value->s = (char *)s;
ret_value->wrapped = 1;
ret_value->n = 1;