summaryrefslogtreecommitdiffstats
path: root/perform/pio_engine.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-06-19 16:06:55 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-06-19 16:06:55 (GMT)
commitea052ffd55cabca3ef756a7f44e7f3f2fa32b679 (patch)
treeb7c28b9fa9d1552d5a0bcfbaba686d925d5470a5 /perform/pio_engine.c
parent29a0f3e3586080a69f0048bf79dec5e9749fcb5d (diff)
downloadhdf5-ea052ffd55cabca3ef756a7f44e7f3f2fa32b679.zip
hdf5-ea052ffd55cabca3ef756a7f44e7f3f2fa32b679.tar.gz
hdf5-ea052ffd55cabca3ef756a7f44e7f3f2fa32b679.tar.bz2
[svn-r5674] Purpose:
Code cleanup Description: Removed more compiler warnings, etc. Platforms tested: Linux 2.2.x (eirene) w/parallel
Diffstat (limited to 'perform/pio_engine.c')
-rw-r--r--perform/pio_engine.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/perform/pio_engine.c b/perform/pio_engine.c
index dfcb465..0a59158 100644
--- a/perform/pio_engine.c
+++ b/perform/pio_engine.c
@@ -342,7 +342,7 @@ done:
static char *
pio_create_filename(iotype iot, const char *base_name, char *fullname, size_t size)
{
- const char *prefix, *suffix;
+ const char *prefix, *suffix="";
char *ptr, last = '\0';
size_t i, j;
@@ -460,11 +460,11 @@ do_write(results *res, file_descr *fd, parameters *parms, long ndsets,
off_t nelmts_xfer;
size_t nelmts_toxfer;
char dname[64];
- off_t dset_offset; /*dataset offset in a file */
+ off_t dset_offset=0; /*dataset offset in a file */
off_t file_offset; /*file offset of the next transfer */
off_t dset_size; /*one dataset size in bytes */
size_t nelmts_in_buf; /*how many element the buffer holds */
- size_t nelmts_in_blk; /*how many element a block holds */
+ size_t nelmts_in_blk=0; /*how many element a block holds */
off_t elmts_begin; /*first elmt this process transfer */
off_t elmts_count; /*number of elmts this process transfer */
hid_t dcpl = -1; /* Dataset creation property list */
@@ -678,7 +678,7 @@ do_write(results *res, file_descr *fd, parameters *parms, long ndsets,
if (parms->verify) {
/*Prepare write data for verify later*/
int *intptr = (int *)buffer;
- register int i;
+ size_t i;
for (i = 0; i < nelmts_toxfer; ++i)
*intptr++ = pio_mpi_rank_g;
@@ -845,11 +845,11 @@ do_read(results *res, file_descr *fd, parameters *parms, long ndsets,
off_t nelmts_xfer;
size_t nelmts_toxfer;
char dname[64];
- off_t dset_offset; /*dataset offset in a file */
+ off_t dset_offset=0; /*dataset offset in a file */
off_t file_offset; /*file offset of the next transfer */
off_t dset_size; /*one dataset size in bytes */
size_t nelmts_in_buf; /*how many element the buffer holds */
- size_t nelmts_in_blk; /*how many element a block holds */
+ size_t nelmts_in_blk=0; /*how many element a block holds */
off_t elmts_begin; /*first elmt this process transfer */
off_t elmts_count; /*number of elmts this process transfer */
@@ -1121,8 +1121,8 @@ HDfprintf(output,
if (parms->verify) {
/*verify read data*/
int *intptr = (int *)buffer;
- register int i;
- register int nerror=0;
+ size_t i;
+ int nerror=0;
for (i = 0; i < nelmts_toxfer; ++i){
if (*intptr++ != pio_mpi_rank_g){