[PATCH 07/35] access: use G_GNUC_UNUSED

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

 



Use G_GNUC_UNUSED from GLib instead of ATTRIBUTE_UNUSED.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/access/viraccessdrivernop.c    | 90 +++++++++++++++---------------
 src/access/viraccessdriverpolkit.c |  4 +-
 2 files changed, 47 insertions(+), 47 deletions(-)

diff --git a/src/access/viraccessdrivernop.c b/src/access/viraccessdrivernop.c
index 5e9d9db759..5772a9c5c6 100644
--- a/src/access/viraccessdrivernop.c
+++ b/src/access/viraccessdrivernop.c
@@ -23,101 +23,101 @@
 #include "access/viraccessdrivernop.h"
 
 static int
-virAccessDriverNopCheckConnect(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                               const char *driverName ATTRIBUTE_UNUSED,
-                               virAccessPermConnect perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckConnect(virAccessManagerPtr manager G_GNUC_UNUSED,
+                               const char *driverName G_GNUC_UNUSED,
+                               virAccessPermConnect perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckDomain(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                              const char *driverName ATTRIBUTE_UNUSED,
-                              virDomainDefPtr domain ATTRIBUTE_UNUSED,
-                              virAccessPermDomain perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckDomain(virAccessManagerPtr manager G_GNUC_UNUSED,
+                              const char *driverName G_GNUC_UNUSED,
+                              virDomainDefPtr domain G_GNUC_UNUSED,
+                              virAccessPermDomain perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckInterface(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                                 const char *driverName ATTRIBUTE_UNUSED,
-                                 virInterfaceDefPtr iface ATTRIBUTE_UNUSED,
-                                 virAccessPermInterface perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckInterface(virAccessManagerPtr manager G_GNUC_UNUSED,
+                                 const char *driverName G_GNUC_UNUSED,
+                                 virInterfaceDefPtr iface G_GNUC_UNUSED,
+                                 virAccessPermInterface perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckNetwork(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                               const char *driverName ATTRIBUTE_UNUSED,
-                               virNetworkDefPtr network ATTRIBUTE_UNUSED,
-                               virAccessPermNetwork perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckNetwork(virAccessManagerPtr manager G_GNUC_UNUSED,
+                               const char *driverName G_GNUC_UNUSED,
+                               virNetworkDefPtr network G_GNUC_UNUSED,
+                               virAccessPermNetwork perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckNetworkPort(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                                   const char *driverName ATTRIBUTE_UNUSED,
-                                   virNetworkDefPtr network ATTRIBUTE_UNUSED,
-                                   virNetworkPortDefPtr port ATTRIBUTE_UNUSED,
-                                   virAccessPermNetworkPort perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckNetworkPort(virAccessManagerPtr manager G_GNUC_UNUSED,
+                                   const char *driverName G_GNUC_UNUSED,
+                                   virNetworkDefPtr network G_GNUC_UNUSED,
+                                   virNetworkPortDefPtr port G_GNUC_UNUSED,
+                                   virAccessPermNetworkPort perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckNodeDevice(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                                  const char *driverName ATTRIBUTE_UNUSED,
-                                  virNodeDeviceDefPtr nodedev ATTRIBUTE_UNUSED,
-                                  virAccessPermNodeDevice perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckNodeDevice(virAccessManagerPtr manager G_GNUC_UNUSED,
+                                  const char *driverName G_GNUC_UNUSED,
+                                  virNodeDeviceDefPtr nodedev G_GNUC_UNUSED,
+                                  virAccessPermNodeDevice perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckNWFilter(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                                const char *driverName ATTRIBUTE_UNUSED,
-                                virNWFilterDefPtr nwfilter ATTRIBUTE_UNUSED,
-                                virAccessPermNWFilter perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckNWFilter(virAccessManagerPtr manager G_GNUC_UNUSED,
+                                const char *driverName G_GNUC_UNUSED,
+                                virNWFilterDefPtr nwfilter G_GNUC_UNUSED,
+                                virAccessPermNWFilter perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckNWFilterBinding(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                                       const char *driverName ATTRIBUTE_UNUSED,
-                                       virNWFilterBindingDefPtr binding ATTRIBUTE_UNUSED,
-                                       virAccessPermNWFilterBinding perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckNWFilterBinding(virAccessManagerPtr manager G_GNUC_UNUSED,
+                                       const char *driverName G_GNUC_UNUSED,
+                                       virNWFilterBindingDefPtr binding G_GNUC_UNUSED,
+                                       virAccessPermNWFilterBinding perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckSecret(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                              const char *driverName ATTRIBUTE_UNUSED,
-                              virSecretDefPtr secret ATTRIBUTE_UNUSED,
-                              virAccessPermSecret perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckSecret(virAccessManagerPtr manager G_GNUC_UNUSED,
+                              const char *driverName G_GNUC_UNUSED,
+                              virSecretDefPtr secret G_GNUC_UNUSED,
+                              virAccessPermSecret perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckStoragePool(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                                   const char *driverName ATTRIBUTE_UNUSED,
-                                   virStoragePoolDefPtr pool ATTRIBUTE_UNUSED,
-                                   virAccessPermStoragePool perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckStoragePool(virAccessManagerPtr manager G_GNUC_UNUSED,
+                                   const char *driverName G_GNUC_UNUSED,
+                                   virStoragePoolDefPtr pool G_GNUC_UNUSED,
+                                   virAccessPermStoragePool perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
 
 static int
-virAccessDriverNopCheckStorageVol(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
-                                  const char *driverName ATTRIBUTE_UNUSED,
-                                  virStoragePoolDefPtr pool ATTRIBUTE_UNUSED,
-                                  virStorageVolDefPtr vol ATTRIBUTE_UNUSED,
-                                  virAccessPermStorageVol perm ATTRIBUTE_UNUSED)
+virAccessDriverNopCheckStorageVol(virAccessManagerPtr manager G_GNUC_UNUSED,
+                                  const char *driverName G_GNUC_UNUSED,
+                                  virStoragePoolDefPtr pool G_GNUC_UNUSED,
+                                  virStorageVolDefPtr vol G_GNUC_UNUSED,
+                                  virAccessPermStorageVol perm G_GNUC_UNUSED)
 {
     return 1; /* Allow */
 }
diff --git a/src/access/viraccessdriverpolkit.c b/src/access/viraccessdriverpolkit.c
index fbe7789ccd..496210fabe 100644
--- a/src/access/viraccessdriverpolkit.c
+++ b/src/access/viraccessdriverpolkit.c
@@ -47,7 +47,7 @@ struct _virAccessDriverPolkitPrivate {
 };
 
 
-static void virAccessDriverPolkitCleanup(virAccessManagerPtr manager ATTRIBUTE_UNUSED)
+static void virAccessDriverPolkitCleanup(virAccessManagerPtr manager G_GNUC_UNUSED)
 {
 }
 
@@ -120,7 +120,7 @@ virAccessDriverPolkitGetCaller(const char *actionid,
 
 
 static int
-virAccessDriverPolkitCheck(virAccessManagerPtr manager ATTRIBUTE_UNUSED,
+virAccessDriverPolkitCheck(virAccessManagerPtr manager G_GNUC_UNUSED,
                            const char *typename,
                            const char *permname,
                            const char **attrs)
-- 
2.19.2

--
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]

  Powered by Linux