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

@@ -208,7 +208,7 @@ function codegen_union_struct(name, casename, cg, scg, structname) {
"\t}\n")
}
function codegen_union(name, cg, tagvar) {
function codegen_union(name, cg, exhaustive, tagvar) {
tagvar = cg["tagname"]
print ""