Skip to content

Suppressions before finalize - #25576

Merged
sjrd merged 2 commits into
scala:mainfrom
som-snytt:issue/25571-unused-nowarn
Mar 24, 2026
Merged

Suppressions before finalize#25576
sjrd merged 2 commits into
scala:mainfrom
som-snytt:issue/25571-unused-nowarn

Conversation

@som-snytt

Copy link
Copy Markdown
Contributor

Fixes #25571

Warnings should be added before finalizeReporting().

@som-snytt
som-snytt force-pushed the issue/25571-unused-nowarn branch from d54c2e5 to 827d61a Compare March 19, 2026 16:08
@som-snytt

som-snytt commented Mar 19, 2026

Copy link
Copy Markdown
Contributor Author

Not sure offhand what -Ysafe-init-global is doing differently. I see on head

scalac -Ysafe-init-global -Werror tests/init-global/pos/LazyList.scala

does not error but does warn; and it does error after this change.

Edit: suspended warnings would not error. Doesn't that mean -Werror was totally broken? One would expect someone to notice that. "Someone."

@som-snytt
som-snytt marked this pull request as ready for review March 20, 2026 01:45
@Gedochao
Gedochao requested review from sjrd and tgodzik March 24, 2026 07:28
@sjrd
sjrd merged commit 4835a33 into scala:main Mar 24, 2026
64 checks passed
@som-snytt
som-snytt deleted the issue/25571-unused-nowarn branch March 24, 2026 20:38
@WojciechMazur WojciechMazur added this to the 3.8.4 milestone Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"-Werror" with "-Wunused:nowarn" does not work

4 participants