Commit a9c11522bb4daabc43b3fe12d08c8db6deb2ac79
1 parent
c50c2d68
KVM: Silence unused s warning
Move s under #ifdef to avoid compiler warning. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6086 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
kvm-all.c
... | ... | @@ -654,9 +654,9 @@ int kvm_vcpu_ioctl(CPUState *env, int type, ...) |
654 | 654 | |
655 | 655 | int kvm_has_sync_mmu(void) |
656 | 656 | { |
657 | +#ifdef KVM_CAP_SYNC_MMU | |
657 | 658 | KVMState *s = kvm_state; |
658 | 659 | |
659 | -#ifdef KVM_CAP_SYNC_MMU | |
660 | 660 | if (kvm_ioctl(s, KVM_CHECK_EXTENSION, KVM_CAP_SYNC_MMU) > 0) |
661 | 661 | return 1; |
662 | 662 | #endif | ... | ... |