projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e78bd5a
)
virtio: Fix compiler warning for non Linux hosts
author
Stefan Weil
<sw@weilnetz.de>
Tue, 22 May 2012 21:23:32 +0000
(23:23 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Wed, 30 May 2012 07:49:49 +0000
(09:49 +0200)
The local variables ret, i are only used if __linux__ is defined.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/virtio-blk.c
patch
|
blob
|
history
diff --git
a/hw/virtio-blk.c
b/hw/virtio-blk.c
index f9e1896ea9316f90a5ca891eb13d9ad99bdedcaa..60750cb2ef92a67a0c41f41c58e9484832ad9fd9 100644
(file)
--- a/
hw/virtio-blk.c
+++ b/
hw/virtio-blk.c
@@
-147,9
+147,11
@@
static VirtIOBlockReq *virtio_blk_get_request(VirtIOBlock *s)
static void virtio_blk_handle_scsi(VirtIOBlockReq *req)
{
+#ifdef __linux__
int ret;
- int status = VIRTIO_BLK_S_OK;
int i;
+#endif
+ int status = VIRTIO_BLK_S_OK;
/*
* We require at least one output segment each for the virtio_blk_outhdr