]> xenbits.xensource.com Git - libvirt.git/commitdiff
syntax-check: mock-noinline: fix after G_GNUC attribute invocations
authorJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2019 11:12:34 +0000 (13:12 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2019 14:14:18 +0000 (16:14 +0200)
We started using G_GNUC macros instead of ATTRIBUTE for some attributes.
Adjust this syntax-check accordingly.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
build-aux/mock-noinline.pl

index 958e133885a84dce86d9999cb447f27b77fdd732..db5420825f24317a565ea60a017e5a0c62ca3b63 100644 (file)
@@ -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*$/) {