]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: avoid compiler warning
authorEric Blake <eblake@redhat.com>
Tue, 20 Apr 2010 19:44:31 +0000 (13:44 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 20 Apr 2010 19:44:31 +0000 (13:44 -0600)
According to GCC, ATTRIBUTE_UNUSED means that an attribute _might_
be unused, not _must_ be unused.  Therefore, it is easier to
blindly mark a variable, than to try and do preprocessor limiting
of when we know it is unused.

* src/remote/remote_driver.c (remoteAuthenticate): Mark attribute
as potentially unused.
Reported by Gustovo Morozowski.

src/remote/remote_driver.c

index c2b58e6b9a79d32ece30a0a2eb3d95392951bb30..44d8c263def1e93be85d466227fbe85e3266c495 100644 (file)
@@ -6475,16 +6475,9 @@ done:
 /*----------------------------------------------------------------------*/
 
 static int
-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
-#endif
-                    ,
+remoteAuthenticate (virConnectPtr conn, struct private_data *priv,
+                    int in_open ATTRIBUTE_UNUSED,
+                    virConnectAuthPtr auth ATTRIBUTE_UNUSED,
                     const char *authtype)
 {
     struct remote_auth_list_ret ret;