Fix new compiler warnings in daemon and build-common

This commit is contained in:
Alexander Udalov
2021-07-05 23:33:12 +02:00
parent 0d211a53cb
commit e7b37d99cb
5 changed files with 27 additions and 3 deletions
+8
View File
@@ -39,3 +39,11 @@ runtimeJar()
sourcesJar()
javadocJar()
tasks {
val compileKotlin by existing(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.DelicateCoroutinesApi"
}
}
}
@@ -66,3 +66,11 @@ runtimeJar()
sourcesJar()
javadocJar()
tasks {
val compileKotlin by existing(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.DelicateCoroutinesApi"
}
}
}
@@ -25,3 +25,11 @@ sourceSets {
"main" { projectDefault() }
"test" {}
}
tasks {
val compileKotlin by existing(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.DelicateCoroutinesApi"
}
}
}
@@ -103,7 +103,7 @@ abstract class DefaultAuthorizableClient<ServerType : ServerBase>(
}
override fun sendNoReplyMessage(msg: AnyMessage<out ServerType>) {
writeActor.offer(SendNoreplyMessageQuery(msg))
writeActor.trySend(SendNoreplyMessageQuery(msg))
}
override suspend fun <T> readMessage(id: Int): T {