[PATCH 34/35] gendispatch: generate G_GNUC_UNUSED instead of ATTRIBUTE_UNUSED

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

 



Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/rpc/gendispatch.pl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl
index 9d3cc5b145..5d1583980e 100755
--- a/src/rpc/gendispatch.pl
+++ b/src/rpc/gendispatch.pl
@@ -487,8 +487,8 @@ elsif ($mode eq "server") {
         my $argtype = $call->{args};
         my $rettype = $call->{ret};
 
-        my $argann = $argtype ne "void" ? "" : " ATTRIBUTE_UNUSED";
-        my $retann = $rettype ne "void" ? "" : " ATTRIBUTE_UNUSED";
+        my $argann = $argtype ne "void" ? "" : " G_GNUC_UNUSED";
+        my $retann = $rettype ne "void" ? "" : " G_GNUC_UNUSED";
 
         # First we print out a function declaration for the
         # real dispatcher body
@@ -1027,9 +1027,9 @@ elsif ($mode eq "server") {
 
         # print functions signature
         print "static int $name(\n";
-        print "    virNetServerPtr server ATTRIBUTE_UNUSED,\n";
+        print "    virNetServerPtr server G_GNUC_UNUSED,\n";
         print "    virNetServerClientPtr client,\n";
-        print "    virNetMessagePtr msg ATTRIBUTE_UNUSED,\n";
+        print "    virNetMessagePtr msg G_GNUC_UNUSED,\n";
         print "    virNetMessageErrorPtr rerr";
         if ($argtype ne "void") {
             print ",\n    $argtype *args";
-- 
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