]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix build without polkit
authorPavel Hrdina <phrdina@redhat.com>
Thu, 25 Sep 2014 08:57:24 +0000 (10:57 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 25 Sep 2014 08:59:43 +0000 (10:59 +0200)
The commit 1b854c76 introduced a new function 'virPolkitCheckAuth' and
in the #else section when you don't have polkit all attributes should be
follwed by ATTRIBUTE_UNUSED.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/util/virpolkit.c

index 203bd6e8cbbf638c64690f0367324160b153a847..f4ea736d67fdc36f6d2646f92355e12c2c282a66 100644 (file)
@@ -238,12 +238,12 @@ int virPolkitCheckAuth(const char *actionid,
 
 #else /* ! WITH_POLKIT1 && ! WITH_POLKIT0 */
 
-int virPolkitCheckAuth(const char *actionid,
-                       pid_t pid,
-                       unsigned long long startTime,
-                       uid_t uid,
-                       const char **details,
-                       bool allowInteraction)
+int virPolkitCheckAuth(const char *actionid ATTRIBUTE_UNUSED,
+                       pid_t pid ATTRIBUTE_UNUSED,
+                       unsigned long long startTime ATTRIBUTE_UNUSED,
+                       uid_t uid ATTRIBUTE_UNUSED,
+                       const char **details ATTRIBUTE_UNUSED,
+                       bool allowInteraction ATTRIBUTE_UNUSED)
 {
     VIR_ERROR(_("Polkit auth attempted, even though polkit is not available"));
     virReportError(VIR_ERR_AUTH_FAILED, "%s",