diff --git a/tools/warnings_count/compare_warnings.py b/tools/warnings_count/compare_warnings.py index 789f1133ea..e6640f4525 100755 --- a/tools/warnings_count/compare_warnings.py +++ b/tools/warnings_count/compare_warnings.py @@ -43,6 +43,9 @@ def main(): with open(args.currentwarnings) as current: current = current.readlines() for newLine in new: + if "warning: previous declaration of" in newLine: + continue + if newLine not in current: if stderr: print(newLine.strip(), file=sys.stderr)