mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Mark cgen's replaceNothing as unused
This commit is contained in:
1 parent
2936b586cf
commit
8f1240f20e
2 files changed
+2
-2
No files matched your search
@@ -165,7 +165,7 @@ func Do(args []string) error {
|
||||
type replacementPolicy bool
|
||||
|
||||
const (
|
||||
replaceNothing = replacementPolicy(false)
|
||||
replaceNothingUNUSED = replacementPolicy(false)
|
||||
replaceCallSuspendibles = replacementPolicy(true)
|
||||
)
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user