* [PATCH][pushed] contrib: skip new egrep warning
@ 2022-09-20 8:17 Martin Liška
0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-09-20 8:17 UTC (permalink / raw)
To: gcc-patches
contrib/ChangeLog:
* filter-clang-warnings.py: Skip egrep: warning: egrep is
obsolescent; using grep -E.
---
contrib/filter-clang-warnings.py | 6 +++---
1 file 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
--
2.37.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-20 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20 8:17 [PATCH][pushed] contrib: skip new egrep warning Martin Liška
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).