]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
remote: fix mingw32 build
authorLaine Stump <laine@laine.org>
Fri, 4 Nov 2011 20:10:54 +0000 (16:10 -0400)
committerLaine Stump <laine@laine.org>
Fri, 4 Nov 2011 20:49:58 +0000 (16:49 -0400)
tty is initialized, and later set in code that is compiled for all
platforms, but is only used in a section that's inside #ifndef WIN32.

src/remote/remote_driver.c

index ea7fb24f89845f1247187e0beffbd49a9a1514d5..f3b8ad57d0a516884f4a5b1826b7191a98bd153b 100644 (file)
@@ -377,7 +377,7 @@ doRemoteOpen (virConnectPtr conn,
      */
     char *name = NULL, *command = NULL, *sockname = NULL, *netcat = NULL;
     char *port = NULL, *authtype = NULL, *username = NULL;
-    bool sanity = true, verify = true, tty = true;
+    bool sanity = true, verify = true, tty ATTRIBUTE_UNUSED = true;
     char *pkipath = NULL, *keyfile = NULL;
 
     /* Return code from this function, and the private data. */