summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-01-07 16:39:27 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-01-07 16:39:27 (GMT)
commit47f3d57c004b40df90a17c662ca4ab30e72461f1 (patch)
tree693fd079a865e39e27b238d8f2a4da2ab1c0c0b1
parent54604e8fc568619ad16d2c8c10333a0b13044626 (diff)
downloadhdf5-47f3d57c004b40df90a17c662ca4ab30e72461f1.zip
hdf5-47f3d57c004b40df90a17c662ca4ab30e72461f1.tar.gz
hdf5-47f3d57c004b40df90a17c662ca4ab30e72461f1.tar.bz2
[svn-r1015] Got rid of some warning messages.
Tested in O2K.
-rw-r--r--src/H5G.c1
-rw-r--r--src/H5Odtype.c2
-rw-r--r--src/H5Sselect.c1
-rw-r--r--src/H5T.c4
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");
}