tjarvstrand
tjarvstrand

Reputation: 1038

How can I tell scalac to suppress warnings is macro-generated code?

I'm currently using a macro (ZIO's @mockable) whose generated code is causing a compilation error that is causing my build to fail:

[error] /home/me/xxx/backend/<macro>:5:204: parameter value rts in anonymous function is never used
[error]   val compose: _root_.zio.URLayer[_root_.zio.Has[_root_.zio.test.mock.Proxy], zio.Has[my.package.database.firestore.Firestore.Service]] = _root_.zio.ZLayer.fromServiceM(((proxy) => withRuntime.map(((rts) => {
[error]                                                                                                                                                                                                            ^
[error] one error found

How can I suppress this warning? I've tried adding "-Wconf:src=.*<macro>:silent" (with and without escaping < and >) but with no luck.

Upvotes: 4

Views: 445

Answers (0)

Related Questions