From a9c11522bb4daabc43b3fe12d08c8db6deb2ac79 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Thu, 18 Dec 2008 22:42:51 +0000 Subject: [PATCH] KVM: Silence unused s warning Move s under #ifdef to avoid compiler warning. Signed-off-by: Jan Kiszka Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6086 c046a42c-6fe2-441c-8c8c-71466251a162 --- kvm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm-all.c b/kvm-all.c index 11034df27f..9fb295ce63 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -654,9 +654,9 @@ int kvm_vcpu_ioctl(CPUState *env, int type, ...) int kvm_has_sync_mmu(void) { +#ifdef KVM_CAP_SYNC_MMU KVMState *s = kvm_state; -#ifdef KVM_CAP_SYNC_MMU if (kvm_ioctl(s, KVM_CHECK_EXTENSION, KVM_CAP_SYNC_MMU) > 0) return 1; #endif -- 2.11.4.GIT