From b4ea84daaf58566fe21e50d6540a8bc287d91863 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 11 Apr 2013 14:20:33 +0200 Subject: [PATCH] Fix a few 4.8 extra anal warnings Signed-off-by: Jens Axboe --- fio.h | 3 ++- gettime.c | 2 +- stat.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fio.h b/fio.h index 7d478a33..47e711fd 100644 --- a/fio.h +++ b/fio.h @@ -388,7 +388,8 @@ static int __NON_FATAL_ERR[] = {EIO, EILSEQ}; static inline int td_non_fatal_error(struct thread_data *td, enum error_type_bit etype, int err) { - int i; + unsigned int i; + if (!td->o.ignore_error[etype]) { td->o.ignore_error[etype] = __NON_FATAL_ERR; td->o.ignore_error_nr[etype] = sizeof(__NON_FATAL_ERR) diff --git a/gettime.c b/gettime.c index 4c998e5f..8b3e1e52 100644 --- a/gettime.c +++ b/gettime.c @@ -25,7 +25,7 @@ struct tv_valid { int last_tv_valid; }; #ifdef CONFIG_TLS_THREAD -static struct tv_valid __thread static_tv_valid; +static __thread struct tv_valid static_tv_valid; #else static pthread_key_t tv_tls_key; #endif diff --git a/stat.c b/stat.c index 245197a6..66bea0a5 100644 --- a/stat.c +++ b/stat.c @@ -1345,7 +1345,7 @@ void show_run_stats(void) free(threadstats); } -static void *__show_running_run_stats(void *arg) +static void *__show_running_run_stats(void fio_unused *arg) { struct thread_data *td; unsigned long long *rt; -- 2.25.1