[PATCH] command: Fix ATTRIBUTE_UNUSED on virSetCapabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If we are building not on a WIN32 architecture and without HAVE_CAPNG
virSetCapabilities has unused argument and virClearCapabilities
is unused as well.
---

Pushed under build breaker rule.

src/util/command.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/util/command.c b/src/util/command.c
index e3a8371..6f51fbb 100644
--- a/src/util/command.c
+++ b/src/util/command.c
@@ -169,8 +169,9 @@ virCommandFDSet(int fd,
 
 #ifndef WIN32
 
-# if HAVE_CAPNG
 static int virClearCapabilities(void) ATTRIBUTE_UNUSED;
+
+# if HAVE_CAPNG
 static int virClearCapabilities(void)
 {
     int ret;
@@ -220,7 +221,8 @@ static int virClearCapabilities(void)
     return 0;
 }
 
-static int virSetCapabilities(unsigned long long capabilities)
+static int
+virSetCapabilities(unsigned long long capabilities ATTRIBUTE_UNUSED)
 {
     return 0;
 }
-- 
1.7.3.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]