diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-07-06 06:38:25 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-07-06 06:54:23 +0200 |
commit | be9a3e693e019ab4797ea093bedde3ca39398e6e (patch) | |
tree | 86f93a5271d936cbecab25e7f031216663902bb9 /tools/lxdrgen-go.awk | |
parent | 53197b51e5edbb1b195070523dbfd8d9ba05d847 (diff) | |
download | liberty-be9a3e693e019ab4797ea093bedde3ca39398e6e.tar.gz liberty-be9a3e693e019ab4797ea093bedde3ca39398e6e.tar.xz liberty-be9a3e693e019ab4797ea093bedde3ca39398e6e.zip |
lxdrgen-swift: fix warnings with exhaustive unions
Diffstat (limited to 'tools/lxdrgen-go.awk')
-rw-r--r-- | tools/lxdrgen-go.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lxdrgen-go.awk b/tools/lxdrgen-go.awk index f9163bb..f129bc1 100644 --- a/tools/lxdrgen-go.awk +++ b/tools/lxdrgen-go.awk @@ -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" |