How can I suppress warnings about the opt in marks...
# announcements
p
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
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
I don't get what the warning is good for anyways
a
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?