https://kotlinlang.org logo
#announcements
Title
# announcements
p

Paul Woitaschek

04/14/2020, 3:01 PM
How can I suppress warnings about the opt in marks? I have allWarningsAsErrors enabled but now my build fails because I have opt in free compiler args applied on all modules and now it prints warnings on
w: Opt-in requirement marker kotlinx.coroutines.FlowPreview is unresolved. Please make sure it's present in the module dependencies
for example
a

Alexey Belkov [JB]

04/15/2020, 2:42 PM
Currently it's not possible to suppress specific warnings: https://youtrack.jetbrains.com/issue/KT-24746. I think the workarounds are: * remove the opt-in argument with unresolved FQN * disable "all warnings as errors"
p

Paul Woitaschek

04/15/2020, 2:49 PM
I don't get what the warning is good for anyways
a

Alexey Belkov [JB]

04/16/2020, 7:52 AM
Well, you're trying to use something which doesn't exist, and the compiler is reporting that. If you believe the warning should not be reported at all, can you please create an issue at http://kotl.in/issue and describe your use case?
2 Views