diff options
author | Martin Liska <mliska@suse.cz> | 2022-09-20 10:16:47 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-09-20 10:16:47 +0200 |
commit | 63e3cc294d835b43701eeef9410d1b8fc8922869 (patch) | |
tree | 267ea71e33b1ad8a1e5bc7171eafb80b5757aed0 /contrib | |
parent | d0c73b6c85677e6755b60fa02d79a5c5e1a8eacd (diff) | |
download | gcc-63e3cc294d835b43701eeef9410d1b8fc8922869.tar.gz |
contrib: skip new egrep warning
contrib/ChangeLog:
* filter-clang-warnings.py: Skip egrep: warning: egrep is
obsolescent; using grep -E.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/filter-clang-warnings.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/filter-clang-warnings.py b/contrib/filter-clang-warnings.py index 942cd30b659..3c68be028a8 100755 --- a/contrib/filter-clang-warnings.py +++ b/contrib/filter-clang-warnings.py @@ -39,7 +39,7 @@ def skip_warning(filename, message): '-Wignored-attributes', '-Wgnu-zero-variadic-macro-arguments', '-Wformat-security', '-Wundefined-internal', '-Wunknown-warning-option', '-Wc++20-extensions', - '-Wbitwise-instead-of-logical'], + '-Wbitwise-instead-of-logical', 'egrep is obsolescent'], 'insn-modes.cc': ['-Wshift-count-overflow'], 'insn-emit.cc': ['-Wtautological-compare'], 'insn-attrtab.cc': ['-Wparentheses-equality'], @@ -57,8 +57,8 @@ def skip_warning(filename, message): 'lex.cc': ['-Wc++20-attribute-extensions'], } - for name, ignores in ignores.items(): - for i in ignores: + for name, ignore in ignores.items(): + for i in ignore: if name in filename and i in message: return True return False |