[svn-r4687]

Purpose:
	Small warning removals
Description:
	Just removed a few more warnings to make the compile go a bit
	smoother...
Platforms tested:
	Linux
This commit is contained in:
Bill Wendling 2001-12-10 13:05:39 -05:00
parent 216b84a9ab
commit 692896a9e7
2 changed files with 7 additions and 10 deletions

View File

@ -123,7 +123,7 @@ static char *pio_create_filename(iotype iot, const char *base_name,
static herr_t do_write(file_descr fd, iotype iot, long ndsets,
long nelmts, hid_t h5dset_space_id, char *buffer);
static herr_t do_fopen(iotype iot, char *fname, file_descr fd /*out*/,
int flags, MPI_Comm comm);
int flags, MPI_Comm comm);
static herr_t do_fclose(iotype iot, file_descr fd);
herr_t
@ -138,20 +138,15 @@ do_pio(parameters param)
iotype iot;
char fname[FILENAME_MAX];
int maxprocs, nfiles, nf;
long ndsets;
long nelmts;
int niters;
long nelmts_toread, nelmts_read;
off_t next_offset; /*offset of next I/O */
int maxprocs, nfiles, nf;
long ndsets, nelmts;
int niters;
int color; /*for communicator creation */
char *buffer = NULL; /*data buffer pointer */
/* HDF5 variables */
herr_t hrc; /*HDF5 return code */
hsize_t h5dims[1]; /*dataset dim sizes */
hsize_t h5block[1], h5stride[1], h5count[1];
hssize_t h5start[1];
hid_t h5dset_space_id = -1; /*dataset space ID */
hid_t h5mem_space_id = -1; /*memory dataspace ID */
@ -505,7 +500,7 @@ do_write(file_descr fd, iotype iot, long ndsets,
while (nelmts_written < nelmts){
nelmts_towrite = nelmts - nelmts_written;
if (nelmts - nelmts_written >= NELMTS_IN_BUFFER) {
if (nelmts - nelmts_written >= (int)NELMTS_IN_BUFFER) {
nelmts_towrite = NELMTS_IN_BUFFER;
} else {
/* last write of a partial buffer */

View File

@ -31,4 +31,6 @@ typedef struct parameters_ {
#define FAIL -1
#endif /* !FAIL */
extern herr_t do_pio(parameters param);
#endif /* PIO_PERF_H__ */