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

@@ -259,7 +259,7 @@ function codegen_union_struct( \
"\t\tbreak;\n")
}
function codegen_union(name, cg, f, ctype, funcname) {
function codegen_union(name, cg, exhaustive, f, ctype, funcname) {
ctype = "union " PrefixLower cameltosnake(name)
print ""
print ctype " {"