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

Ján Tomko posted 35 patches 6 years, 3 months ago
[libvirt] [PATCH 34/35] gendispatch: generate G_GNUC_UNUSED instead of ATTRIBUTE_UNUSED
Posted by Ján Tomko 6 years, 3 months ago
Signed-off-by: Ján Tomko <jtomko@redhat.com>
---
 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@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list