Skip to content

Commit

Permalink
Add -Wnonunit-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mkharytonau committed Feb 20, 2023
1 parent 702194a commit b9dc35f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ object ScalacOptsPlugin extends AutoPlugin {
ScalacOpt("-Ywarn-unused:privates") since 12 until 13, // Warn if a private member is unused.
ScalacOpt("-Wunused:privates") since 13, // ^ Replaces the above
ScalacOpt("-Ywarn-value-discard") until 13, // Warn when non-Unit expression results are unused.
ScalacOpt("-Wvalue-discard") since 13 // ^ Replaces the above
ScalacOpt("-Wvalue-discard") since 13, // ^ Replaces the above
ScalacOpt("-Wnonunit-statement") since 13, // Warn when expression is ignored because it is followed by another expression
)


Expand Down

0 comments on commit b9dc35f

Please sign in to comment.