block: iscsi build fix if LIBISCSI_FEATURE_IOVECTOR is not defined
commitf2564d88fe7949bdb5ca4ad652282c28b3da6210
authorJeff Cody <jcody@redhat.com>
Mon, 19 May 2014 21:13:06 +0000 (19 17:13 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 May 2014 08:09:45 +0000 (20 10:09 +0200)
tree4d48b6bc5a43ec18294a2aff957161207a8da1f0
parent91e7fcca4743cf694eb0c8e7a8d938cf359b5bd8
block: iscsi build fix if LIBISCSI_FEATURE_IOVECTOR is not defined

Commit b03c380 introduced the function
iscsi_allocationmap_is_allocated(), however it is only used within a
code block that is conditionally compiled.  This produces a warning
(error with -werror) of "defined but not used" for the the function, if
LIBISCSI_FEATURE_IOVECTOR is not defined.

This wraps iscsi_allocationmap_is_allocated() in the same conditional.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c