Преглед на файлове

[core] Suppress NOTHING_TO_INLINE warnings for AtomicIntSeq

Him188 преди 3 години
родител
ревизия
ab8e53fc76
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      mirai-core/src/commonMain/kotlin/utils/AtomicIntSeq.kt

+ 3 - 0
mirai-core/src/commonMain/kotlin/utils/AtomicIntSeq.kt

@@ -7,6 +7,9 @@
  * https://github.com/mamoe/mirai/blob/dev/LICENSE
  */
 
+// IDE doesn't show warnings but compiler do.
+@file:Suppress("NOTHING_TO_INLINE", "KotlinRedundantDiagnosticSuppress")
+
 package net.mamoe.mirai.internal.utils
 
 import kotlinx.atomicfu.AtomicInt