From: Matthias Bolte Date: Tue, 20 Apr 2010 18:28:00 +0000 (+0200) Subject: Mark in_open parameter of remoteAuthenticate as unused when it's unused X-Git-Tag: v0.8.1~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cad913060c43b1377fc071e7ac703a7a84da682e;p=thirdparty%2Flibvirt.git Mark in_open parameter of remoteAuthenticate as unused when it's unused Otherwise compiling with -Werror will fail. --- diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index e3df27b271..c2b58e6b9a 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -6475,7 +6475,11 @@ done: /*----------------------------------------------------------------------*/ static int -remoteAuthenticate (virConnectPtr conn, struct private_data *priv, int in_open, +remoteAuthenticate (virConnectPtr conn, struct private_data *priv, int in_open +#if !HAVE_SASL && !HAVE_POLKIT + ATTRIBUTE_UNUSED +#endif + , virConnectAuthPtr auth #if !HAVE_SASL && !HAVE_POLKIT ATTRIBUTE_UNUSED