This will avoid warnings about unused variables when compiling code that calls qemu_init_vcpu().
Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> --- qemu-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-common.h b/qemu-common.h index e674786..bfd4c1a 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -288,7 +288,7 @@ struct qemu_work_item { }; #ifdef CONFIG_USER_ONLY -#define qemu_init_vcpu(env) do { } while (0) +#define qemu_init_vcpu(env) do { (void)(env); } while (0) #else void qemu_init_vcpu(void *env); #endif -- 1.7.11.7