Build: enable -Werror for several modules
This commit is contained in:
+1
-4
@@ -325,11 +325,8 @@ extra["tasksWithWarnings"] = listOf(
|
|||||||
":kotlin-stdlib:compileTestKotlin",
|
":kotlin-stdlib:compileTestKotlin",
|
||||||
":kotlin-stdlib-jdk7:compileTestKotlin",
|
":kotlin-stdlib-jdk7:compileTestKotlin",
|
||||||
":kotlin-stdlib-jdk8:compileTestKotlin",
|
":kotlin-stdlib-jdk8:compileTestKotlin",
|
||||||
":compiler:cli:compileKotlin",
|
|
||||||
":kotlin-scripting-compiler:compileKotlin",
|
|
||||||
":plugins:uast-kotlin:compileKotlin",
|
":plugins:uast-kotlin:compileKotlin",
|
||||||
":plugins:uast-kotlin:compileTestKotlin",
|
":plugins:uast-kotlin:compileTestKotlin"
|
||||||
":plugins:uast-kotlin-idea:compileKotlin"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
val tasksWithWarnings: List<String> by extra
|
val tasksWithWarnings: List<String> by extra
|
||||||
|
|||||||
@@ -56,7 +56,9 @@ tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
|||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
languageVersion = "1.3"
|
languageVersion = "1.3"
|
||||||
apiVersion = "1.3"
|
apiVersion = "1.3"
|
||||||
freeCompilerArgs = freeCompilerArgs - "-progressive" + "-Xskip-prerelease-check"
|
freeCompilerArgs = freeCompilerArgs - "-progressive" + listOf(
|
||||||
|
"-Xskip-prerelease-check", "-Xsuppress-version-warnings"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
@@ -91,6 +91,7 @@ class KotlinUastElementFactory(project: Project) : UastElementFactory {
|
|||||||
return createQualifiedReference(qualifiedName, context?.sourcePsi)
|
return createQualifiedReference(qualifiedName, context?.sourcePsi)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("UNUSED_PARAMETER")
|
||||||
/*override*/ fun createQualifiedReference(qualifiedName: String, context: PsiElement?): UQualifiedReferenceExpression? {
|
/*override*/ fun createQualifiedReference(qualifiedName: String, context: PsiElement?): UQualifiedReferenceExpression? {
|
||||||
return psiFactory.createExpression(qualifiedName).let {
|
return psiFactory.createExpression(qualifiedName).let {
|
||||||
when (it) {
|
when (it) {
|
||||||
@@ -153,6 +154,7 @@ class KotlinUastElementFactory(project: Project) : UastElementFactory {
|
|||||||
return psiFactory.createExpression("null").toUElementOfType<ULiteralExpression>()!!
|
return psiFactory.createExpression("null").toUElementOfType<ULiteralExpression>()!!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("UNUSED_PARAMETER")
|
||||||
/*override*/ fun createIntLiteral(value: Int, context: PsiElement?): ULiteralExpression {
|
/*override*/ fun createIntLiteral(value: Int, context: PsiElement?): ULiteralExpression {
|
||||||
return psiFactory.createExpression(value.toString()).toUElementOfType<ULiteralExpression>()!!
|
return psiFactory.createExpression(value.toString()).toUElementOfType<ULiteralExpression>()!!
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user