Mark cgen's replaceNothing as unused

This commit is contained in:
Nigel Tao committed 2018-12-01 22:36:32 +11:00
1 parent 2936b586cf
commit 8f1240f20e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -165,7 +165,7 @@ func Do(args []string) error {
type replacementPolicy bool
const (
replaceNothing = replacementPolicy(false)
replaceNothingUNUSED = replacementPolicy(false)
replaceCallSuspendibles = replacementPolicy(true)
)
+1 -1
View File
@@ -520,7 +520,7 @@ func (g *gen) writeCallSuspendibles(b *buffer, n *a.Expr, depth uint32, eqQuesti
b.writes("status = ")
}
if err := g.writeExprUserDefinedCall(b, n, replaceNothing, depth); err != nil {
if err := g.writeExprUserDefinedCall(b, n, replaceCallSuspendibles, depth); err != nil {
return err
}
b.writes(";\n")