Tianyu Zhu
05/17/2021, 4:43 PMinline
functions that don't "need" to be inlined, which causes the NOTHING_TO_INLINE
warning.
• It makes a bunch of annotations: @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
, which, as kotlin.OptIn
states in its own documentation, requires -Xopt-in=kotlin.RequiresOptIn
to be added to the compiler args.
•
While these warnings don't affect the correctness of the generated code, it makes the build a lot noisier.
• Is there a better way to compile the resulting kotlin code that doesn't emit these errors?
• Is there a way to ignore these warnings specifically? Right now I've resorted to
tasks.withType(KotlinCompile::class) {
kotlinOptions.suppressWarnings = true
}