mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
Avoid "defined but not used" for consts
This commit is contained in:
1 parent
11a6819be9
commit
70958ea914
6 files changed
+991
-895
No files matched your search
@@ -690,7 +690,7 @@ func (g *gen) writeConst(b *buffer, n *a.Const) error {
|
||||
if err := g.writeCTypeName(b, n.XType(), g.pkgPrefix, n.QID()[1].Str(g.tm)); err != nil {
|
||||
return err
|
||||
}
|
||||
b.writes(" = ")
|
||||
b.writes(" WUFFS_BASE__POTENTIALLY_UNUSED = ")
|
||||
if err := g.writeConstList(b, n.Value()); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user