diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-31 18:54:28 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-31 18:54:28 (GMT) |
commit | 7388e8a3e432d6c0e37a19da098b4cddd3aa3925 (patch) | |
tree | e8c8c179510f0cac63ff985b2ae518d4cf3fdbac /src/H5I.c | |
parent | 5646fd9b5efb6ae0065bc23f4082295ddd588e58 (diff) | |
download | hdf5-7388e8a3e432d6c0e37a19da098b4cddd3aa3925.zip hdf5-7388e8a3e432d6c0e37a19da098b4cddd3aa3925.tar.gz hdf5-7388e8a3e432d6c0e37a19da098b4cddd3aa3925.tar.bz2 |
[svn-r8139] Purpose:
Code cleanup
Description:
Clean up compiler warnings.
Platforms tested:
h5committested
Diffstat (limited to 'src/H5I.c')
-rw-r--r-- | src/H5I.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1051,7 +1051,7 @@ H5I_dec_ref(hid_t id) /* Check arguments */ grp = H5I_GRP(id); if (grp <= H5I_BADID || grp >= H5I_NGROUPS) - HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "invalid group number"); + HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid group number"); grp_ptr = H5I_id_group_list_g[grp]; if (grp_ptr == NULL || grp_ptr->count <= 0) HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid group number"); @@ -1154,7 +1154,7 @@ H5I_inc_ref(hid_t id) /* Check arguments */ grp = H5I_GRP(id); if (grp <= H5I_BADID || grp >= H5I_NGROUPS) - HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "invalid group number"); + HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid group number"); grp_ptr = H5I_id_group_list_g[grp]; if (!grp_ptr || grp_ptr->count<=0) HGOTO_ERROR(H5E_ATOM, H5E_BADGROUP, FAIL, "invalid group"); @@ -1239,7 +1239,7 @@ H5I_get_ref(hid_t id) /* Check arguments */ grp = H5I_GRP(id); if (grp <= H5I_BADID || grp >= H5I_NGROUPS) - HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "invalid group number"); + HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid group number"); grp_ptr = H5I_id_group_list_g[grp]; if (!grp_ptr || grp_ptr->count<=0) HGOTO_ERROR(H5E_ATOM, H5E_BADGROUP, FAIL, "invalid group"); @@ -1341,7 +1341,7 @@ H5I_find_id(hid_t id) unsigned hash_loc; /*bucket pointer */ H5I_id_info_t *ret_value = NULL; /*return value */ - FUNC_ENTER_NOAPI_NOINIT(H5I_find_id); + FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5I_find_id); /* Check arguments */ grp = H5I_GRP(id); @@ -1372,7 +1372,6 @@ H5I_find_id(hid_t id) /* Set the return value */ ret_value = id_ptr; -done: FUNC_LEAVE_NOAPI(ret_value); } |