From 47f3d57c004b40df90a17c662ca4ab30e72461f1 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 7 Jan 1999 11:39:27 -0500 Subject: [svn-r1015] Got rid of some warning messages. Tested in O2K. --- src/H5G.c | 1 - src/H5Odtype.c | 2 +- src/H5Sselect.c | 1 - src/H5T.c | 4 ++-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/H5G.c b/src/H5G.c index ceff4dc..9af5fb5 100644 --- a/src/H5G.c +++ b/src/H5G.c @@ -1705,7 +1705,6 @@ H5G_loc (hid_t loc_id) #endif HRETURN_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "unable to get symbol table entry of property list"); - break; case H5I_GROUP: if (NULL==(group=H5I_object (loc_id))) { diff --git a/src/H5Odtype.c b/src/H5Odtype.c index 2a5d7f3..662d2d4 100644 --- a/src/H5Odtype.c +++ b/src/H5Odtype.c @@ -256,7 +256,7 @@ H5O_dtype_decode_helper(const uint8_t **pp, H5T_t *dt) dt->u.atomic.offset = 0; dt->u.atomic.lsb_pad = H5T_PAD_ZERO; dt->u.atomic.msb_pad = H5T_PAD_ZERO; - dt->u.atomic.u.r.rtype = flags & 0x0f; + dt->u.atomic.u.r.rtype = (H5R_type_t)(flags & 0x0f); break; default: diff --git a/src/H5Sselect.c b/src/H5Sselect.c index bfbe27f..8f1384d 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -394,7 +394,6 @@ H5S_select_hyperslab (H5S_t *space, H5S_seloper_t op, default: HRETURN_ERROR(H5E_ARGS, H5E_UNSUPPORTED, FAIL, "invalid selection operation"); - break; } /* end switch */ /* Add new blocks to current selection */ diff --git a/src/H5T.c b/src/H5T.c index a09bc49..c1d518a 100644 --- a/src/H5T.c +++ b/src/H5T.c @@ -2161,7 +2161,7 @@ H5Tget_sign(hid_t type_id) } if (dt->parent) dt = dt->parent; /*defer to parent*/ if (H5T_INTEGER!=dt->type) { - HRETURN_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, + HRETURN_ERROR(H5E_DATATYPE, H5E_CANTINIT, H5T_SGN_ERROR, "operation not defined for data type class"); } @@ -2486,7 +2486,7 @@ H5Tget_norm(hid_t type_id) } if (dt->parent) dt = dt->parent; /*defer to parent*/ if (H5T_FLOAT != dt->type) { - HRETURN_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, + HRETURN_ERROR(H5E_DATATYPE, H5E_CANTINIT, H5T_NORM_ERROR, "operation not defined for data type class"); } -- cgit v0.12