]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
contrib/filter-clang-warnings.py: Ignore all .texi
authorFilip Kastl <fkastl@suse.cz>
Mon, 16 Feb 2026 08:57:14 +0000 (09:57 +0100)
committerFilip Kastl <fkastl@suse.cz>
Thu, 19 Feb 2026 08:07:03 +0000 (09:07 +0100)
Compiling GCC with Clang doesn't only yield Clang's warnings but also
warnings about .texi documentation files.  In filter-clang-warnings.py
we blacklisted some .texi files.  Blacklist all of them.

contrib/ChangeLog:

* filter-clang-warnings.py: Filter out all warnings comming from
files with ".texi" in their name.

Signed-off-by: Filip Kastl <fkastl@suse.cz>
contrib/filter-clang-warnings.py

index 5f61ec50d7da86f763ac205fa2ff27ef86330914..db94ee325a87f620b36a0187e9c56b7ea476a7a7 100755 (executable)
@@ -73,13 +73,12 @@ def skip_warning(filename, message):
             # Rust peopel promised to clean these warnings too
             'rust/': ['-Wunused-private-field'],
                  'libiberty/sha1.c': ['-Wc23-extensions'],
-            'avr-mmcu.texi': [''],
-            'gfortran.texi': [''],
-            'install.texi': [''],
-            'libgccjit.texi': [''],
             'libtool': ['']
     }
 
+    if ".texi" in filename:
+        return True
+
     for name, ignore in ignores.items():
         for i in ignore:
             if name in filename and i in message: