https://gcc.gnu.org/g:7ab4f9cc72b48b341ce52da099ee38112647d644

commit r16-7958-g7ab4f9cc72b48b341ce52da099ee38112647d644
Author: Martin Jambor <[email protected]>
Date:   Mon Mar 9 14:01:00 2026 +0100

    contrib/filter-clang-warnings.py: Ignore a C++ compat warning in libiberty
    
    When building GCC master with Clang, we were getting (and not
    filtering out) warning:
    
    /home/worker/buildworker/tiber-gcc-clang/build/libiberty/regex.c:3978:24: 
warning: implicit conversion from 'int' to enumeration type 'reg_errcode_t' is 
invalid in C++ [-Wimplicit-int-enum-cast]
    
    The flag is a C++ compatibility warning and libiberty is a C library, so
    I think we can ignore the warning.
    
    contrib/ChangeLog:
    
    2026-03-09  Martin Jambor  <[email protected]>
    
            * filter-clang-warnings.py (skip_warning): Also ingore
            -Wimplicit-int-enum-cast in libiberty.

Diff:
---
 contrib/filter-clang-warnings.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/contrib/filter-clang-warnings.py b/contrib/filter-clang-warnings.py
index b964ab6f1f4a..8eec366b4bc7 100755
--- a/contrib/filter-clang-warnings.py
+++ b/contrib/filter-clang-warnings.py
@@ -75,6 +75,7 @@ def skip_warning(filename, message):
             # except perhaps for this one, see
             # https://github.com/Rust-GCC/gccrs/issues/4441
             'rust/ast/rust-fmt.h': ['-Wreturn-type-c-linkage'],
+            'libiberty/': ["-Wimplicit-int-enum-cast"],
             'libiberty/sha1.c': ['-Wc23-extensions'],
             'libtool': ['']
     }

Reply via email to