From: Jens Axboe Date: Tue, 8 Jan 2013 12:43:14 +0000 (+0100) Subject: server: move fio_net_cmd to the end of fio_net_int_cmd X-Git-Tag: fio-2.0.13~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=a28b019dcb27e71037c4393f7272fccebcd150f5 server: move fio_net_cmd to the end of fio_net_int_cmd fio_net_cmd is variably sized. We don't use any transfer space for the internal command, but the compiler might complain about this (since it has no way to know this fact). Move fio_net_cmd to the end of the internal command to both avoid a warning on clang and to make this more idiot proof. Signed-off-by: Jens Axboe --- diff --git a/server.h b/server.h index 3a8b4c3a..3f1bde4e 100644 --- a/server.h +++ b/server.h @@ -29,10 +29,10 @@ struct fio_net_cmd { }; struct fio_net_int_cmd { - struct fio_net_cmd cmd; struct flist_head list; struct timeval tv; uint64_t saved_tag; + struct fio_net_cmd cmd; }; enum {