From 81077d6e8a5d0f8677559cc876a1dc6cca0c8e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 15 Oct 2019 13:12:34 +0200 Subject: [PATCH] syntax-check: mock-noinline: fix after G_GNUC attribute invocations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- build-aux/mock-noinline.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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*$/) {