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 <mjambor@suse.cz>
* filter-clang-warnings.py (skip_warning): Also ingore
-Wimplicit-int-enum-cast in libiberty.
# 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': ['']
}