summaryrefslogtreecommitdiffstats
path: root/src/H5Olayout.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-23 17:57:16 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-23 17:57:16 (GMT)
commit09ee6ebc4ca6284aef70d87a4abd6bd6d43f54f7 (patch)
treebb60773615fc7926781e7f6d1428a59fa0c7e612 /src/H5Olayout.c
parentd6bb759cbdaa4ef5326cdb4e43a9ca815ccb9710 (diff)
downloadhdf5-09ee6ebc4ca6284aef70d87a4abd6bd6d43f54f7.zip
hdf5-09ee6ebc4ca6284aef70d87a4abd6bd6d43f54f7.tar.gz
hdf5-09ee6ebc4ca6284aef70d87a4abd6bd6d43f54f7.tar.bz2
[svn-r8733] 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 0b6b4a8..1839343 100644
--- a/src/H5Olayout.c
+++ b/src/H5Olayout.c
@@ -128,7 +128,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 */
@@ -176,7 +176,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) {
@@ -340,7 +340,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 */
} /* end else */
@@ -502,7 +501,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 */
} /* end else */