qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] kvm: Fix compiler warning (clang)
@ 2013-09-17 20:39 Stefan Weil
  2013-09-20 16:11 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2013-09-17 20:39 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Stefan Weil

Report from clang analyzer:

clock.c:42:15: warning:
Value stored to 'cpu' during its initialization is never read

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 hw/i386/kvm/clock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c
index 92aabb8..383938d 100644
--- a/hw/i386/kvm/clock.c
+++ b/hw/i386/kvm/clock.c
@@ -39,7 +39,7 @@ static void kvmclock_vm_state_change(void *opaque, int running,
                                      RunState state)
 {
     KVMClockState *s = opaque;
-    CPUState *cpu = first_cpu;
+    CPUState *cpu;
     int cap_clock_ctrl = kvm_check_extension(kvm_state, KVM_CAP_KVMCLOCK_CTRL);
     int ret;
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] kvm: Fix compiler warning (clang)
  2013-09-17 20:39 [Qemu-devel] [PATCH] kvm: Fix compiler warning (clang) Stefan Weil
@ 2013-09-20 16:11 ` Michael Tokarev
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Tokarev @ 2013-09-20 16:11 UTC (permalink / raw)
  To: Stefan Weil; +Cc: qemu-trivial, qemu-devel

18.09.2013 00:39, Stefan Weil wrote:
> Report from clang analyzer:
>
> clock.c:42:15: warning:
> Value stored to 'cpu' during its initialization is never read

Thanks, applied to the trivial patches queue.

/mjt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-20 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 20:39 [Qemu-devel] [PATCH] kvm: Fix compiler warning (clang) Stefan Weil
2013-09-20 16:11 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).