From a28b019dcb27e71037c4393f7272fccebcd150f5 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 8 Jan 2013 13:43:14 +0100 Subject: [PATCH] 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 --- server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.25.1