From: Eric Blake Date: Mon, 1 Jul 2013 19:21:57 +0000 (-0600) Subject: build: avoid build failure without gnutls X-Git-Tag: CVE-2013-2230~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e6a78e712fc1d649f4e730815f906bf8e14f8a2;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 7a0c1f6000..7f3e83332c 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -609,6 +609,7 @@ doRemoteOpen(virConnectPtr conn, priv->is_secure = 1; #else (void)sanity; + (void)verify; virReportError(VIR_ERR_INVALID_ARG, "%s", _("GNUTLS support not available in this build")); goto failed;