summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-09-20 10:16:47 +0200
committerMartin Liska <mliska@suse.cz>2022-09-20 10:16:47 +0200
commit63e3cc294d835b43701eeef9410d1b8fc8922869 (patch)
tree267ea71e33b1ad8a1e5bc7171eafb80b5757aed0 /contrib
parentd0c73b6c85677e6755b60fa02d79a5c5e1a8eacd (diff)
downloadgcc-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-xcontrib/filter-clang-warnings.py6
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