We have problems when using Scalac -Xfatal-warnings
in the following cases:
- Implicit vals used by macros internally
- Internal vals that macros auto-generate
In both cases, we see Scalac failing to compile because it detects some values are not used, while we know they are (simply, when we remove them, the code doesn't compile anymore)
Although the two might be symptoms of the same problem in Scalac, they boil down to the same issue for us: we need to disable the -Ywarn-unused
in Scala 2.11.12
Is there a way to exclude specific class files so they won't be affected by the compiler flag?