Avoid "defined but not used" for consts

This commit is contained in:
Nigel Tao committed 2019-02-02 13:34:50 +11:00
1 parent 11a6819be9
commit 70958ea914
6 files changed
+991 -895

No files matched your search

+1 -1
View File
@@ -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
}