Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable -Wunused #3760

Merged
merged 13 commits into from Mar 29, 2022

Conversation

kpodsiad
Copy link
Member

Turned out we had a lot of unused warnings.

build.sbt Outdated
Comment on lines 288 to 289
// silence "The outer reference in this type test cannot be checked at run time." in mtags
"-Wconf:src=.*(CompletionProvider|ArgCompletions|Completions|Keywords).scala&msg=The outer reference:silent"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to dive into this warning deeper, but for now, I silenced it to have 0 warnings in the problems tab.

Comment on lines +277 to +278
val unused213 = "-Wunused"
val unused3 = "-Wunused:all"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to enable all of them and them eventually filter out noisy ones via Wconf

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see all the cleanup! Good job on this! Couple questions/suggestions.

build.sbt Show resolved Hide resolved
build.sbt Outdated Show resolved Hide resolved
tests/cross/src/main/scala/tests/BasePCSuite.scala Outdated Show resolved Hide resolved
@kpodsiad
Copy link
Member Author

@ckipp01 @dos65 suggestions applied, CI is green, the number of warnings is equal to zero.

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 it.

@kpodsiad kpodsiad merged commit 944c278 into scalameta:main Mar 29, 2022
@kpodsiad kpodsiad deleted the chore/stricter-compiler-options branch March 29, 2022 08:31
@kpodsiad
Copy link
Member Author

Fatal warnings for 2.13.8 on the CI, will it be useful or troublesome?

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.

None yet

3 participants