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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux