Fix compilation warnings

master
Jean-Yves VET 2019-10-30 15:43:43 +01:00
parent 3a34b2efb7
commit be48206e5f
2 changed files with 3 additions and 5 deletions

View File

@ -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);
}
}

View File

@ -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);
}