mirror of https://github.com/xqemu/xqemu.git
virtio: Fix compiler warning for non Linux hosts
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>
This commit is contained in:
parent
e78bd5ab07
commit
47ce9ef7f8
|
@ -147,9 +147,11 @@ static VirtIOBlockReq *virtio_blk_get_request(VirtIOBlock *s)
|
||||||
|
|
||||||
static void virtio_blk_handle_scsi(VirtIOBlockReq *req)
|
static void virtio_blk_handle_scsi(VirtIOBlockReq *req)
|
||||||
{
|
{
|
||||||
|
#ifdef __linux__
|
||||||
int ret;
|
int ret;
|
||||||
int status = VIRTIO_BLK_S_OK;
|
|
||||||
int i;
|
int i;
|
||||||
|
#endif
|
||||||
|
int status = VIRTIO_BLK_S_OK;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We require at least one output segment each for the virtio_blk_outhdr
|
* We require at least one output segment each for the virtio_blk_outhdr
|
||||||
|
|
Loading…
Reference in New Issue