https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
a

ankushg

07/07/2022, 7:02 PM
We’re on the new memory model, and it’s kinda annoying to suppress IDE warnings relating to the old memory model on a one-by-one basis Is there a way to globally suppress old-memory-model-related warnings like
VARIABLE_IN_SINGLETON_WITHOUT_THREAD_LOCAL
?
5
e

ephemient

07/07/2022, 7:21 PM
you could
@file:Suppress("VARIABLE_IN_SINGLETON_WITHOUT_THREAD_LOCAL")
at the top of each source file, but I don't think there's a way to do so module-wide
a

ankushg

07/08/2022, 12:12 AM
Yeah from looking around it seems like there aren’t any compiler options to suppress specific warnings Looks like this youtrack ticket from 7 years ago is still open 😅 https://youtrack.jetbrains.com/issue/KT-8087
5 Views