One problem, though, is that the generated kotlin ...
# grpc
t
One problem, though, is that the generated kotlin code emits a bunch of warnings when compiled: • It generates a bunch of
inline
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
Copy code
tasks.withType(KotlinCompile::class) {
    kotlinOptions.suppressWarnings = true
  }
👀 1