]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: avoid build failure without gnutls
authorEric Blake <eblake@redhat.com>
Mon, 1 Jul 2013 19:21:57 +0000 (13:21 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 29 Jul 2013 22:10:55 +0000 (16:10 -0600)
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)

src/remote/remote_driver.c

index f66304c3f9f2021380f579ebc387e3a9d5cdd43d..657364f4e697a68725a55e1690e06b068b9b54f0 100644 (file)
@@ -613,6 +613,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;