Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
etspaceman opened this issue Jan 30, 2020 · 1 comment
Open

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

etspaceman opened this issue Jan 30, 2020 · 1 comment

Comments

@etspaceman
Copy link
Contributor

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.

@mbeckerle
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants