diff options
author | kmu <kmu@hdfgroup.org> | 2019-12-06 18:03:19 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2019-12-06 18:03:19 (GMT) |
commit | f22e258586009b59cebdde931620c9d7379db6cd (patch) | |
tree | 062a4f4fdce26ea9ca4ef9f3016c87017a2b87b8 /tools/test | |
parent | 1f871e23b7c3fdec925004f2cd39d3a2cdd8decb (diff) | |
download | hdf5-f22e258586009b59cebdde931620c9d7379db6cd.zip hdf5-f22e258586009b59cebdde931620c9d7379db6cd.tar.gz hdf5-f22e258586009b59cebdde931620c9d7379db6cd.tar.bz2 |
remove unsed var,function,macro, etc
Diffstat (limited to 'tools/test')
-rw-r--r-- | tools/test/h5repack/h5repackgentest.c | 1 | ||||
-rw-r--r-- | tools/test/perform/perf.c | 6 | ||||
-rw-r--r-- | tools/test/perform/pio_engine.c | 9 |
3 files changed, 1 insertions, 15 deletions
diff --git a/tools/test/h5repack/h5repackgentest.c b/tools/test/h5repack/h5repackgentest.c index aaac285..87ca31c 100644 --- a/tools/test/h5repack/h5repackgentest.c +++ b/tools/test/h5repack/h5repackgentest.c @@ -314,7 +314,6 @@ generate_f32le(hbool_t external) { int main(void) { int i = 0; - int ret_value = 0; for (i = 0; i < 2; i++) { hbool_t external = (i & 1) ? TRUE : FALSE; diff --git a/tools/test/perform/perf.c b/tools/test/perform/perf.c index 34b8a2d..fd7d9de 100644 --- a/tools/test/perform/perf.c +++ b/tools/test/perform/perf.c @@ -118,7 +118,7 @@ extern char *optarg; int main(int argc, char **argv) { char *buf, *tmp, *buf2, *tmp2, *check; - int i, j, mynod=0, nprocs=1, err, my_correct = 1, correct, myerrno; + int i, j, mynod=0, nprocs=1, my_correct = 1, correct, myerrno; double stim, etim; double write_tim = 0; double read_tim = 0; @@ -127,10 +127,6 @@ int main(int argc, char **argv) double min_read_tim, min_write_tim; double ave_read_tim, ave_write_tim; int64_t iter_jump = 0; - int64_t seek_position = 0; - MPI_File fh; - MPI_Status status; - int nchars; char filename[MAX_PATH]; herr_t ret; /* Generic return value */ diff --git a/tools/test/perform/pio_engine.c b/tools/test/perform/pio_engine.c index 77c04ab..44f9b0a 100644 --- a/tools/test/perform/pio_engine.c +++ b/tools/test/perform/pio_engine.c @@ -54,24 +54,15 @@ /* sizes of various items. these sizes won't change during program execution */ /* The following three must have the same type */ -#define ELMT_SIZE (sizeof(unsigned char)) /* we're doing bytes */ -#define ELMT_MPI_TYPE MPI_BYTE #define ELMT_H5_TYPE H5T_NATIVE_UCHAR #define GOTOERROR(errcode) { ret_code = errcode; goto done; } -#define GOTODONE { goto done; } #define ERRMSG(mesg) { \ HDfprintf(stderr, "Proc %d: ", pio_mpi_rank_g); \ HDfprintf(stderr, "*** Assertion failed (%s) at line %4d in %s\n", \ mesg, (int)__LINE__, __FILE__); \ } -#define MSG(mesg) { \ - HDfprintf(stderr, "Proc %d: ", pio_mpi_rank_g); \ - HDfprintf(stderr, "(%s) at line %4d in %s\n", \ - mesg, (int)__LINE__, __FILE__); \ -} - /* verify: if val is false (0), print mesg. */ #define VRFY(val, mesg) do { \ if (!val) { \ |