how can I actually suppress the compiler warning for:
discarded non-Unit value
[warn] kryo.register(classOf[Foo])
The suggestion of Suppress "discarded non-Unit value" warning does not apply since the problem takes place outside of my own code.
edit
compiler options are:
"-target:jvm-1.8",
"-encoding",
"UTF-8",
"-feature",
"-unchecked",
"-deprecation",
"-Xfuture",
"-Xlint:missing-interpolator",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Ywarn-dead-code",
"-Ywarn-unused"
which will warn "-Ywarn-value-discard",