Compile-time warnings?

Is there any support for compile-time warnings (like #warning in C)?

No. There is no feature in Kotlin that let’s you generate your own custom warning.