Join Slack
Can I tell the compiler to ignore only a certain type of warnings? (deprecation in my case)
# compiler
m
mbonnin
09/27/2022, 3:25 PM
Can I tell the compiler to ignore only a certain type of warnings? (deprecation in my case)
s
Sam
09/27/2022, 3:25 PM
I wish 😄 this is a long-requested feature
m
mbonnin
09/27/2022, 3:26 PM
Ah yea, just bumped into
https://youtrack.jetbrains.com/issue/KT-8087/Make-it-possible-to-suppress-warnings-globally-in-compiler-via-command-line-option
s
Sam
09/27/2022, 3:26 PM
Also
https://youtrack.jetbrains.com/issue/KT-24746
Sam
09/27/2022, 3:27 PM
I can’t remember where I saw this suggestion, but I heard a potential workaround: turn off
-Werror
and then pipe the compiler output into your own validation code that parses the warnings
m
mbonnin
09/27/2022, 3:30 PM
I see 👍 Thanks for the insights!
5
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by