Patchwork [RFC,01/20] qemu-common.h: "use" env parameter in no-op version of qemu_init_vcpu()

login
register
mail settings
Submitter Eduardo Habkost
Date Dec. 18, 2012, 8:03 p.m.
Message ID <1355861053-11460-2-git-send-email-ehabkost@redhat.com>
Download mbox | patch
Permalink /patch/207190/
State New
Headers show

Comments

Eduardo Habkost - Dec. 18, 2012, 8:03 p.m.
This will avoid warnings about unused variables when compiling code that
calls qemu_init_vcpu().

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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