summaryrefslogtreecommitdiffstats
path: root/src/H5Aint.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-10-07 15:38:05 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-10-07 15:38:05 (GMT)
commit7068fd38b086e974e4c503a9fa42d8c8d863f377 (patch)
tree2a890caa62ff1f9e8dcef282a76806f583e12bba /src/H5Aint.c
parent2ec9b447ec40c6a6486cbd2f577083fc905556fa (diff)
downloadhdf5-7068fd38b086e974e4c503a9fa42d8c8d863f377.zip
hdf5-7068fd38b086e974e4c503a9fa42d8c8d863f377.tar.gz
hdf5-7068fd38b086e974e4c503a9fa42d8c8d863f377.tar.bz2
[svn-r27990] fix some warnings.
Diffstat (limited to 'src/H5Aint.c')
-rw-r--r--src/H5Aint.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5Aint.c b/src/H5Aint.c
index 70a64d5..607e058 100644
--- a/src/H5Aint.c
+++ b/src/H5Aint.c
@@ -756,7 +756,7 @@ H5A_get_space(H5A_t *attr)
/* Copy the attribute's dataspace */
if(NULL == (ds = H5S_copy(attr->shared->ds, FALSE, TRUE)))
- HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, NULL, "unable to copy dataspace")
+ HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "unable to copy dataspace")
/* Atomize */
if((ret_value = H5I_register(H5I_DATASPACE, ds, TRUE)) < 0)
@@ -804,15 +804,15 @@ H5A_get_type(H5A_t *attr)
* read-only.
*/
if(NULL == (dt = H5T_copy(attr->shared->dt, H5T_COPY_REOPEN)))
- HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, NULL, "unable to copy datatype")
+ HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "unable to copy datatype")
/* Mark any datatypes as being in memory now */
if(H5T_set_loc(dt, NULL, H5T_LOC_MEMORY) < 0)
- HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "invalid datatype location")
+ HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "invalid datatype location")
/* Lock copied type */
if(H5T_lock(dt, FALSE) < 0)
- HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "unable to lock transient datatype")
+ HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to lock transient datatype")
if(H5T_is_named(dt)) {
/* If this is a committed datatype, we need to recreate the
@@ -828,7 +828,7 @@ H5A_get_type(H5A_t *attr)
done:
if(ret_value < 0 && dt && (H5T_close(dt) < 0))
- HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, NULL, "unable to release datatype")
+ HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, FAIL, "unable to release datatype")
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5A_get_type() */