Skip to content

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

Open
@etspaceman

Description

@etspaceman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions