diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2008-08-18 13:24:04 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-08-18 15:13:37 +0300 |
commit | 54b6296e54fd300ed36747bcfa4d69865ddffa4c (patch) | |
tree | 4869d7867745414db99821411a2caa7e14e4bfbd | |
parent | 9459d3becb1d7dfeeeff01356128a01ec95b3f66 (diff) |
Remove some unused variables
This patch addresses all current warnings regarding unused variables
in KVM userspace.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | exec.c | 1 | ||||
-rw-r--r-- | hw/device-hotplug.c | 1 | ||||
-rw-r--r-- | kvm-tpr-opt.c | 2 | ||||
-rw-r--r-- | qemu-kvm.c | 2 |
4 files changed, 1 insertions, 5 deletions
@@ -182,7 +182,6 @@ static void io_mem_init(void); CPUWriteMemoryFunc *io_mem_write[IO_MEM_NB_ENTRIES][4]; CPUReadMemoryFunc *io_mem_read[IO_MEM_NB_ENTRIES][4]; void *io_mem_opaque[IO_MEM_NB_ENTRIES]; -static int io_mem_nb; char io_mem_used[IO_MEM_NB_ENTRIES]; static int io_mem_watch; #endif diff --git a/hw/device-hotplug.c b/hw/device-hotplug.c index 3d170c53f..8e2bc3569 100644 --- a/hw/device-hotplug.c +++ b/hw/device-hotplug.c @@ -13,7 +13,6 @@ static PCIDevice *qemu_system_hot_add_nic(const char *opts, int bus_nr) { int ret; - char buf[4096]; PCIBus *pci_bus; pci_bus = pci_find_bus (bus_nr); diff --git a/kvm-tpr-opt.c b/kvm-tpr-opt.c index 122d8c3b4..6677741d8 100644 --- a/kvm-tpr-opt.c +++ b/kvm-tpr-opt.c @@ -353,7 +353,7 @@ static void vtpr_ioport_write(void *opaque, uint32_t addr, uint32_t val) CPUState *env = cpu_single_env; struct kvm_regs regs; struct kvm_sregs sregs; - uint32_t rip, apic; + uint32_t rip; kvm_get_regs(kvm_context, env->cpu_index, ®s); rip = regs.rip - 2; diff --git a/qemu-kvm.c b/qemu-kvm.c index 1d07650ce..3466015ef 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -605,8 +605,6 @@ int kvm_main_loop(void) static int kvm_debug(void *opaque, int vcpu) { - CPUState *env = cpu_single_env; - kvm_debug_stop_requested = 1; vcpu_info[vcpu].stopped = 1; return 1; |