summaryrefslogtreecommitdiffstats
path: root/src/H5Olayout.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-23 17:56:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-23 17:56:57 (GMT)
commit6fc0bffac6e099b32c2e195207625e66e5b40c05 (patch)
tree792d54e2b6cd48c48db4758f5ac2f64564e4e014 /src/H5Olayout.c
parent7c3df64cc4742c0316ca81aeef67bd95a5737c70 (diff)
downloadhdf5-6fc0bffac6e099b32c2e195207625e66e5b40c05.zip
hdf5-6fc0bffac6e099b32c2e195207625e66e5b40c05.tar.gz
hdf5-6fc0bffac6e099b32c2e195207625e66e5b40c05.tar.bz2
[svn-r8732] Purpose:
Code cleanup Description: Reduce compiler warnings on SGI IRIX Platforms tested: FreeBSD 4.10 (sleipnir) SGI IRIX6 (Cheryl's machine) Too minor to require full h5committest
Diffstat (limited to 'src/H5Olayout.c')
-rw-r--r--src/H5Olayout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/H5Olayout.c b/src/H5Olayout.c
index eba35ae..e829606 100644
--- a/src/H5Olayout.c
+++ b/src/H5Olayout.c
@@ -133,7 +133,7 @@ H5O_layout_decode(H5F_t *f, hid_t UNUSED dxpl_id, const uint8_t *p, H5O_shared_t
HGOTO_ERROR(H5E_OHDR, H5E_CANTLOAD, NULL, "dimensionality is too large");
/* Layout class */
- mesg->type = *p++;
+ mesg->type = (H5D_layout_t)*p++;
assert(H5D_CONTIGUOUS == mesg->type || H5D_CHUNKED == mesg->type || H5D_COMPACT == mesg->type);
/* Reserved bytes */
@@ -181,7 +181,7 @@ H5O_layout_decode(H5F_t *f, hid_t UNUSED dxpl_id, const uint8_t *p, H5O_shared_t
} /* end if */
else {
/* Layout class */
- mesg->type = *p++;
+ mesg->type = (H5D_layout_t)*p++;
/* Interpret the rest of the message according to the layout class */
switch(mesg->type) {
@@ -318,7 +318,6 @@ H5O_layout_encode(H5F_t *f, uint8_t *p, const void *_mesg)
default:
HGOTO_ERROR(H5E_OHDR, H5E_CANTENCODE, FAIL, "Invalid layout class");
- break;
} /* end switch */
done:
@@ -436,7 +435,6 @@ H5O_layout_meta_size(H5F_t *f, const void *_mesg)
default:
HGOTO_ERROR(H5E_OHDR, H5E_CANTENCODE, 0, "Invalid layout class");
- break;
} /* end switch */
done: