Fix variable type warning
authorJens Axboe <axboe@kernel.dk>
Wed, 9 Jan 2013 10:46:01 +0000 (11:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Jan 2013 10:46:01 +0000 (11:46 +0100)
Bruce reports:

With 2.0.13 on FreeBSD there's also a warning from client.c:

client.c:24:18: warning: field 'eta' with variable sized type 'struct
jobs_eta' not at the end of a struct or class is a GNU extension [-Wgnu]
         struct jobs_eta eta;

Re-order ->eta and ->pending.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c

index a483913062cfb527f64c718356366cd6d2266c33..fd67079c01d8f6baf12890f6b90e6fb0632ea051 100644 (file)
--- a/client.c
+++ b/client.c
@@ -21,8 +21,8 @@
 #include "hash.h"
 
 struct client_eta {
-       struct jobs_eta eta;
        unsigned int pending;
+       struct jobs_eta eta;
 };
 
 struct fio_client {