[libvirt] [PATCH 1/8] syntax-check: mock-noinline: fix after G_GNUC attribute invocations

Ján Tomko jtomko at redhat.com
Tue Oct 15 12:21:23 UTC 2019


We started using G_GNUC macros instead of ATTRIBUTE for some attributes.
Adjust this syntax-check accordingly.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 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 (<FH>) {
         if (/^\s*(\w+)\(/ || /^(?:\w+\*?\s+)+(?:\*\s*)?(\w+)\(/) {
             my $name = $1;
-            if ($name !~ /ATTRIBUTE/) {
+            if ($name !~ /(?:G_GNUC|ATTRIBUTE)/) {
                 $func = $name;
             }
         } elsif (/^\s*$/) {
-- 
2.19.2




More information about the libvir-list mailing list