contrib/ChangeLog:
* filter-clang-warnings.py: Simplify.
args = parser.parse_args()
lines = [line.strip() for line in open(args.log)]
-total = 0
messages = set()
for line in lines:
token = ': warning: '
if '/libffi/' in location or location.startswith('Makefile'):
continue
if not skip_warning(location, message):
- total += 1
messages.add(line)
for line in sorted(messages):
print(line)
-print('\nTotal warnings: %d' % total)
+
+print('\nTotal warnings: %d' % len(messages))