Skip to content

Disable fatal warnings on 2.12 if cross-building? #378

@armanbilge

Description

@armanbilge

At least a few Typelevel projects are affected by the changes in scala/scala#9890 (particularly those containing JS facades / Native bindings). Actually that PR improves warnings, but the problem is it is a significant divergence from 2.12. This makes cross-compiling across 2.12/2.13 with fatals enabled on both no longer possible, at least with the default sbt-typelevel-settings.

Some random ideas:

  1. Disable fatals on 2.12 and move on.
  2. Disable just unused warnings on 2.12.
  3. Don't warn for ununused nowarns.
  4. Create a @nowarn212, @nowarn213, and @nowarn3 annotations to help navigate this mess.

/cc @satorg @DavidGregory084 my resident scalac option experts :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions