From be48206e5fba905bfd7d5c4e26b04fab67b3e4d0 Mon Sep 17 00:00:00 2001 From: Jean-Yves VET Date: Wed, 30 Oct 2019 15:43:43 +0100 Subject: [PATCH] Fix compilation warnings --- src/aiori-POSIX.c | 4 ++-- src/ior.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/aiori-POSIX.c b/src/aiori-POSIX.c index 99a68f1..901eed5 100755 --- a/src/aiori-POSIX.c +++ b/src/aiori-POSIX.c @@ -171,7 +171,7 @@ void gpfs_access_start(int fd, IOR_offset_t length, IOR_param_t *param, int acce rc = gpfs_fcntl(fd, &take_locks); if (verbose >= VERBOSE_2 && rc != 0) { - EWARNF("gpfs_fcntl(fd, ...) access range hint failed.", fd); + EWARNF("gpfs_fcntl(%d, ...) access range hint failed.", fd); } } @@ -195,7 +195,7 @@ void gpfs_access_end(int fd, IOR_offset_t length, IOR_param_t *param, int access rc = gpfs_fcntl(fd, &free_locks); if (verbose >= VERBOSE_2 && rc != 0) { - EWARNF("gpfs_fcntl(fd, ...) free range hint failed.", fd); + EWARNF("gpfs_fcntl(%d, ...) free range hint failed.", fd); } } diff --git a/src/ior.c b/src/ior.c index e811f83..57f385d 100755 --- a/src/ior.c +++ b/src/ior.c @@ -503,8 +503,6 @@ void AllocResults(IOR_test_t *test) if (test->results != NULL) return; - IOR_param_t * params = & test->params; - reps = test->params.repetitions; test->results = (IOR_results_t *) safeMalloc(sizeof(IOR_results_t) * reps); } @@ -886,7 +884,7 @@ ReduceIterResults(IOR_test_t *test, double *timer, const int rep, const int acce * number of I/Os issued from that task; then reduce and display the * minimum (best) latency achieved. So what is reported is the average * latency of all ops from a single task, then taking the minimum of - * that between all tasks. */ + * that between all tasks. */ latency = (timer[3] - timer[2]) / (params->blockSize / params->transferSize); MPI_CHECK(MPI_Reduce(&latency, &minlatency, 1, MPI_DOUBLE, MPI_MIN, 0, testComm), "MPI_Reduce()");