From 9415a072c299df20e9cc8801a03e15efd8c531e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A1n=20Tomko?= Date: Mon, 14 Oct 2019 15:03:17 +0200 Subject: [PATCH] gendispatch: generate G_GNUC_UNUSED instead of ATTRIBUTE_UNUSED MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- 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.39.5