Fix compiler warnings in compiler code
This commit is contained in:
@@ -62,8 +62,8 @@ fun generate(): String {
|
||||
}
|
||||
}
|
||||
|
||||
p.println("internal val emptyBinaryFun: Function2<BigInteger, BigInteger, BigInteger> = { a, b -> BigInteger(\"0\") }")
|
||||
p.println("internal val emptyUnaryFun: Function1<Long, Long> = { a -> 1.toLong() }")
|
||||
p.println("internal val emptyBinaryFun: Function2<BigInteger, BigInteger, BigInteger> = { _, _ -> BigInteger(\"0\") }")
|
||||
p.println("internal val emptyUnaryFun: Function1<Long, Long> = { _ -> 1.toLong() }")
|
||||
p.println()
|
||||
p.println("internal val unaryOperations: HashMap<UnaryOperationKey<*>, Pair<Function1<Any?, Any>, Function1<Long, Long>>>")
|
||||
p.println(" = hashMapOf<UnaryOperationKey<*>, Pair<Function1<Any?, Any>, Function1<Long, Long>>>(")
|
||||
|
||||
@@ -49,7 +49,7 @@ fun generateMap(): String {
|
||||
|
||||
val binaryIrOperationsMap = getBinaryIrOperationMap(irBuiltIns)
|
||||
|
||||
//save to file
|
||||
p.println("@Suppress(\"DEPRECATION\")")
|
||||
p.println("val unaryFunctions = mapOf<CompileTimeFunction, Function1<Any?, Any?>>(")
|
||||
p.println(generateUnaryBody(unaryOperationsMap, irBuiltIns))
|
||||
p.println(")")
|
||||
|
||||
@@ -101,6 +101,8 @@ class GenerateProtoBufCompare {
|
||||
val sb = StringBuilder()
|
||||
val p = Printer(sb)
|
||||
p.println(File("license/COPYRIGHT.txt").readText())
|
||||
p.println("@file:Suppress(\"UNUSED_PARAMETER\")")
|
||||
p.println("")
|
||||
p.println("package org.jetbrains.kotlin.incremental")
|
||||
p.println()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user