diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-07-26 17:28:26 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-07-26 17:28:26 (GMT) |
commit | 69e501fc70450eec20b5f20a248467347b69547c (patch) | |
tree | 7b2b7aff20195e9ec3285db688aa991def2dd31a /src/H5T.c | |
parent | cb41664db2fdfb7da5cc754a0119364741d0dae4 (diff) | |
download | hdf5-69e501fc70450eec20b5f20a248467347b69547c.zip hdf5-69e501fc70450eec20b5f20a248467347b69547c.tar.gz hdf5-69e501fc70450eec20b5f20a248467347b69547c.tar.bz2 |
[svn-r23938] remove "switch missing default case" in src.
Diffstat (limited to 'src/H5T.c')
-rw-r--r-- | src/H5T.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3247,6 +3247,8 @@ H5T_copy(H5T_t *old_dt, H5T_copy_t method) new_dt->shared->state = H5T_STATE_RDONLY; } break; + default: + HGOTO_ERROR(H5E_DATATYPE, H5E_BADTYPE, NULL, "invalid copy method type") } /* end switch */ /* Update fields in the new struct, if we aren't sharing an already opened @@ -3449,6 +3451,8 @@ H5T_lock (H5T_t *dt, hbool_t immutable) case H5T_STATE_OPEN: /*void*/ break; + default: + HGOTO_ERROR(H5E_DATATYPE, H5E_BADTYPE, FAIL, "invalid datatype state") } done: @@ -4850,6 +4854,8 @@ H5T_oloc(H5T_t *dt) HDassert(dt->sh_loc.type == H5O_SHARE_TYPE_COMMITTED); ret_value = &dt->oloc; break; + default: + HGOTO_ERROR(H5E_DATATYPE, H5E_BADTYPE, NULL, "invalid datatype state") } /* end switch */ done: @@ -4888,6 +4894,8 @@ H5T_nameof(H5T_t *dt) case H5T_STATE_OPEN: ret_value = &(dt->path); break; + default: + HGOTO_ERROR(H5E_DATATYPE, H5E_BADTYPE, NULL, "invalid datatype state") } /* end switch */ done: |