Suppress known warnings in produced Objective-C header
This commit is contained in:
committed by
SvyatoslavScherbina
parent
d052f198e2
commit
40ac5171f9
+10
@@ -977,6 +977,15 @@ abstract class ObjCExportHeaderGenerator internal constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
add("NS_ASSUME_NONNULL_BEGIN")
|
add("NS_ASSUME_NONNULL_BEGIN")
|
||||||
|
add("#pragma clang diagnostic push")
|
||||||
|
listOf(
|
||||||
|
"-Wunknown-warning-option",
|
||||||
|
"-Wnullability",
|
||||||
|
"-Wnullability-completeness",
|
||||||
|
"-Wswift-name-attribute"
|
||||||
|
).forEach {
|
||||||
|
add("#pragma clang diagnostic ignored \"$it\"")
|
||||||
|
}
|
||||||
add("")
|
add("")
|
||||||
|
|
||||||
stubs.forEach {
|
stubs.forEach {
|
||||||
@@ -984,6 +993,7 @@ abstract class ObjCExportHeaderGenerator internal constructor(
|
|||||||
add("")
|
add("")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add("#pragma clang diagnostic pop")
|
||||||
add("NS_ASSUME_NONNULL_END")
|
add("NS_ASSUME_NONNULL_END")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user