qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/1] block/raw-posix: fix compilation warning on


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH 1/1] block/raw-posix: fix compilation warning on OSX
Date: Mon, 16 Feb 2015 11:23:05 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Am 12.02.2015 um 06:35 hat Denis V. Lunev geschrieben:
> block/raw-posix.c:947:19: warning: unused variable 's' [-Wunused-variable]
>     BDRVRawState *s = aiocb->bs->opaque;
> 
> This variable is used only when on of the following macros are defined
> CONFIG_XFS, CONFIG_FALLOCATE, CONFIG_FALLOCATE_PUNCH_HOLE or
> CONFIG_FALLOCATE_ZERO_RANGE. Fortunately, CONFIG_FALLOCATE_PUNCH_HOLE
> and CONFIG_FALLOCATE_ZERO_RANGE could be defined only along with
> CONFIG_FALLOCATE. Therefore checking for CONFIG_XFS or CONFIG_FALLOCATE
> would be enough.
> 
> Signed-off-by: Denis V. Lunev <address@hidden>
> CC: Peter Maydell <address@hidden>
> CC: Kevin Wolf <address@hidden>

Thanks, applied to the block branch.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]