lxdrgen-swift: fix warnings with exhaustive unions

This commit is contained in:
2023-07-06 06:38:25 +02:00
parent 53197b51e5
commit be9a3e693e
6 changed files with 23 additions and 12 deletions

View File

@@ -467,7 +467,7 @@ function codegen_union_struct(name, casename, cg, scg, structname, init) {
"\t\tu.Interface = &s\n")
}
function codegen_union(name, cg, gotype, tagvar) {
function codegen_union(name, cg, exhaustive, gotype, tagvar) {
gotype = PrefixCamel name
print "type " gotype " struct {"
print "\tInterface any"