lightbend-labs / scala-logging

Convenient and performant logging library for Scala wrapping SLF4J.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-Ywarn-unused yields "never used" error in LoggerMacro

etspaceman opened this issue · comments

If you enable the Ywarn-unused flag in this repository, there are a few errors that result. Most of them are trivial and easy to clean up (I have opened #204 with some work here), but there is one in particular that I could not resolve:

[warn] /Users/emeisel/Documents/GitHub/scala-logging/src/main/scala/com/typesafe/scalalogging/LoggerMacro.scala:295:12: pattern var qq$macro$2 in method unapply is never used; `qq$macro$2@_' suppresses this warning
[warn]       case q"scala.StringContext.apply(..$parts).s(..$args)" =>
[warn]            ^
[warn] one warning found

I'm not really sure why the warning is appearing, but I wanted to raise it here for investigation.

I have same issue in entirely different code base (Apache Daffodil).