From 2b119316799ef57bac63776b1e3fe44d9cbb68ec Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Sun, 25 Oct 2026 19:30:55 +0100 Subject: [PATCH] CI: Drop an unused loop variable in the warnings report script Co-Authored-By: Claude Opus 5.5 --- .github/scripts/warnings_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/warnings_report.py b/.github/scripts/warnings_report.py index 4321dbd..d4118a9 100644 --- a/.github/scripts/warnings_report.py +++ b/.github/scripts/warnings_report.py @@ -327,7 +327,7 @@ class Report: def render_text(self): """All unique warnings in compiler format, for IDEs and grep.""" lines = [] - for category, w in sorted(self.all_items(changed_only=False), key=lambda e: (e[1], e[0])): + for w in sorted({w for _, w in self.all_items(changed_only=False)}): flag = f" [{w.flag}]" if w.flag else "" lines.append(f"{w.file}:{w.line}:{w.col}: warning: {w.msg}{flag}") return "\n".join(lines) + ("\n" if lines else "")