mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-16 00:21:28 +00:00
build: avoid build failure without gnutls
Found while trying to cross-compile to mingw: CC libvirt_driver_remote_la-remote_driver.lo ../../src/remote/remote_driver.c: In function 'doRemoteOpen': ../../src/remote/remote_driver.c:487:23: error: variable 'verify' set but not used [-Werror=unused-but-set-variable] * src/remote/remote_driver.c (doRemoteOpen): Also ignore 'verify'. Signed-off-by: Eric Blake <eblake@redhat.com> (cherry picked from commit 4e6a78e712fc1d649f4e730815f906bf8e14f8a2)
This commit is contained in:
parent
15bde978da
commit
ef10647e2e
@ -613,6 +613,7 @@ doRemoteOpen(virConnectPtr conn,
|
|||||||
priv->is_secure = 1;
|
priv->is_secure = 1;
|
||||||
#else
|
#else
|
||||||
(void)sanity;
|
(void)sanity;
|
||||||
|
(void)verify;
|
||||||
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
||||||
_("GNUTLS support not available in this build"));
|
_("GNUTLS support not available in this build"));
|
||||||
goto failed;
|
goto failed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user