Fix warnings in K/Native code
This commit is contained in:
committed by
Space
parent
0a5991d6e7
commit
ca9cbf7eb7
+4
@@ -175,6 +175,8 @@ abstract class StructDef(val size: Long, val align: Int) {
|
||||
when (it) {
|
||||
is Field -> add(it)
|
||||
is AnonymousInnerRecord -> addAll(it.def.fields)
|
||||
is BitField,
|
||||
is IncompleteField -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -185,6 +187,8 @@ abstract class StructDef(val size: Long, val align: Int) {
|
||||
when (it) {
|
||||
is BitField -> add(it)
|
||||
is AnonymousInnerRecord -> addAll(it.def.bitFields)
|
||||
is Field,
|
||||
is IncompleteField -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -241,6 +241,8 @@ fun StructDef.fieldsHaveDefaultAlignment(): Boolean {
|
||||
offset = it.offset / 8 + it.typeSize
|
||||
}
|
||||
is BitField -> return false
|
||||
is AnonymousInnerRecord,
|
||||
is IncompleteField -> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+7
@@ -156,6 +156,7 @@ class StubIrBridgeBuilder(
|
||||
val getAddressExpression = getGlobalAddressExpression(extra.cGlobalName, propertyAccessor)
|
||||
propertyAccessorBridgeBodies[propertyAccessor] = typeInfo.argFromBridged(getAddressExpression, kotlinFile, nativeBacked = propertyAccessor) + "!!"
|
||||
}
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,6 +188,7 @@ class StubIrBridgeBuilder(
|
||||
}
|
||||
propertyAccessorBridgeBodies[propertyAccessor] = setter
|
||||
}
|
||||
else -> {}
|
||||
}
|
||||
|
||||
is PropertyAccessor.Setter.WriteBits -> {
|
||||
@@ -223,6 +225,11 @@ class StubIrBridgeBuilder(
|
||||
simpleBridgeGenerator.insertNativeBridge(propertyAccessor, emptyList(), wrapper.lines)
|
||||
}
|
||||
}
|
||||
is PropertyAccessor.Getter.ArrayMemberAt,
|
||||
is PropertyAccessor.Getter.GetConstructorParameter,
|
||||
is PropertyAccessor.Getter.GetEnumEntry,
|
||||
is PropertyAccessor.Getter.MemberAt,
|
||||
is PropertyAccessor.Setter.MemberAt -> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user