[libvirt] [PATCH] Mark in_open parameter of remoteAuthenticate as unused when it's unused

Matthias Bolte matthias.bolte at googlemail.com
Tue Apr 20 18:56:54 UTC 2010


Otherwise compiling with -Werror will fail.
---

I just pushed this trivial patch.

 src/remote/remote_driver.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index e3df27b..c2b58e6 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
-- 
1.6.3.3




More information about the libvir-list mailing list