kevin-lee / sbt-devoops

Sbt Plugin with some tools to help build your project

Home Page:https://sbt-devoops.kevinly.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove -Ywarn-unused from Scala 2.11

kevin-lee opened this issue · comments

Task

Summary

Remove -Ywarn-unused from Scala 2.11.

Project Details

Version: 2.4.1

Description

Remove -Ywarn-unused from Scala 2.11 because -Ywarn-unused may cause a false warning.
e.g.)

scala> val ab = (1, "a")
ab: (Int, String) = (1,a)

scala> for {
     |   o <- Option(ab)
     |   (a, b) = o
     | } yield {
     |   println(s"a: ${a.toString}, b: $b")
     | }
<console>:16: warning: local val in value $anonfun is never used
         (a, b) = o
          ^
<console>:16: warning: local val in value $anonfun is never used
         (a, b) = o
             ^