diff options
author | Denis V. Lunev <den@openvz.org> | 2015-02-12 08:35:49 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-03-09 11:11:59 +0100 |
commit | a6dcf097fad2773fdee9ea12f8452dcc259e9ee1 (patch) | |
tree | 51cb54cfe6c64d9380ff0146e3a9d3c093fdddfb /libdecnumber | |
parent | 876eb1b0cc2b04927739cba10e4e73e8b990d65e (diff) | |
download | hqemu-a6dcf097fad2773fdee9ea12f8452dcc259e9ee1.zip hqemu-a6dcf097fad2773fdee9ea12f8452dcc259e9ee1.tar.gz |
block/raw-posix: fix compilation warning on OSX
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 <den@openvz.org>
CC: Peter Maydell <peter.maydell@linaro.org>
CC: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'libdecnumber')
0 files changed, 0 insertions, 0 deletions