Fix a few 4.8 extra anal warnings
authorJens Axboe <axboe@kernel.dk>
Thu, 11 Apr 2013 12:20:33 +0000 (14:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 Apr 2013 12:20:33 +0000 (14:20 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fio.h
gettime.c
stat.c

diff --git a/fio.h b/fio.h
index 7d478a3..47e711f 100644 (file)
--- 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)
index 4c998e5..8b3e1e5 100644 (file)
--- 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 245197a..66bea0a 100644 (file)
--- 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;