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 7d478a33b6a4299809691ccfa9e9db543947a072..47e711fd4482f3adbf676aaade486e3a7f93a05f 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)
 {
 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)
        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 4c998e5ff89f1dc72503f01f2552cdde78538437..8b3e1e5246eb5787663d51560219b6c6b0c4d7b9 100644 (file)
--- a/gettime.c
+++ b/gettime.c
@@ -25,7 +25,7 @@ struct tv_valid {
        int last_tv_valid;
 };
 #ifdef CONFIG_TLS_THREAD
        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
 #else
 static pthread_key_t tv_tls_key;
 #endif
diff --git a/stat.c b/stat.c
index 245197a6633557c5987134c6ce67e741583e6f7a..66bea0a59a779340fa6f2fc747cb6d35a2a27ee4 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -1345,7 +1345,7 @@ void show_run_stats(void)
        free(threadstats);
 }
 
        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;
 {
        struct thread_data *td;
        unsigned long long *rt;