From ab8e53fc7650c95973b656f65d2216334635a62b Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 29 Oct 2022 11:57:01 +0100 Subject: [PATCH] [core] Suppress NOTHING_TO_INLINE warnings for AtomicIntSeq --- mirai-core/src/commonMain/kotlin/utils/AtomicIntSeq.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mirai-core/src/commonMain/kotlin/utils/AtomicIntSeq.kt b/mirai-core/src/commonMain/kotlin/utils/AtomicIntSeq.kt index aa2c8f335..6164db1b8 100644 --- a/mirai-core/src/commonMain/kotlin/utils/AtomicIntSeq.kt +++ b/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