diff options
author | Songyu Lu <songyulu@hdfgroup.org> | 2018-11-27 15:04:42 (GMT) |
---|---|---|
committer | Songyu Lu <songyulu@hdfgroup.org> | 2018-11-27 15:04:42 (GMT) |
commit | 14de476c8cb1b797ad43bea3c71dfb32bcd2131c (patch) | |
tree | ea5ba84d3dd32ec5260718416f1795a771fd32d2 /src/H5RS.c | |
parent | 9c7161e105aaade595c4f382e76ec3b95990ae91 (diff) | |
download | hdf5-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |