You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "David Arthur (Jira)" <ji...@apache.org> on 2020/03/05 16:36:00 UTC

[jira] [Updated] (KAFKA-9665) Scala compiler not producing unused warnings

     [ https://issues.apache.org/jira/browse/KAFKA-9665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Arthur updated KAFKA-9665:
--------------------------------
    Summary: Scala compiler not producing unused warnings  (was: Scala compile not producing unused warnings)

> Scala compiler not producing unused warnings
> --------------------------------------------
>
>                 Key: KAFKA-9665
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9665
>             Project: Kafka
>          Issue Type: Bug
>          Components: build
>            Reporter: David Arthur
>            Assignee: David Arthur
>            Priority: Minor
>
> While reviewing KAFKA-9661, I wondered about the compiler giving us a warning for unused locals. I ran the build locally and didn't see any warnings. Turns out Scala 2.12 doesn't support the compiler flag {{-Xlint:unused}}. Since we build with 2.12 by default, we can easily miss these warnings. 
> We should instead use {{-Ywarn-unused:locals}} which works for scalac 2.12 and 2.13.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)