From: Ján Tomko Date: Tue, 15 Oct 2019 11:12:34 +0000 (+0200) Subject: syntax-check: mock-noinline: fix after G_GNUC attribute invocations X-Git-Tag: v5.9.0-rc1~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81077d6e8a5d0f8677559cc876a1dc6cca0c8e15;p=thirdparty%2Flibvirt.git syntax-check: mock-noinline: fix after G_GNUC attribute invocations We started using G_GNUC macros instead of ATTRIBUTE for some attributes. Adjust this syntax-check accordingly. Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- diff --git a/build-aux/mock-noinline.pl b/build-aux/mock-noinline.pl index 958e133885..db5420825f 100644 --- a/build-aux/mock-noinline.pl +++ b/build-aux/mock-noinline.pl @@ -40,7 +40,7 @@ sub scan_annotations { while () { if (/^\s*(\w+)\(/ || /^(?:\w+\*?\s+)+(?:\*\s*)?(\w+)\(/) { my $name = $1; - if ($name !~ /ATTRIBUTE/) { + if ($name !~ /(?:G_GNUC|ATTRIBUTE)/) { $func = $name; } } elsif (/^\s*$/) {