From: Jens Axboe Date: Thu, 11 Apr 2013 12:20:33 +0000 (+0200) Subject: Fix a few 4.8 extra anal warnings X-Git-Tag: fio-2.1~50 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=b4ea84daaf58566fe21e50d6540a8bc287d91863 Fix a few 4.8 extra anal warnings Signed-off-by: Jens Axboe --- 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;