mirror of
https://github.com/golang/go
synced 2024-11-18 04:14:49 -07:00
cmd/yacc: fix compile error in empty grammar
Fixes #12154. Change-Id: I1e6d1a3479a8a6fc8f53aebd18fb142506110809 Reviewed-on: https://go-review.googlesource.com/13673 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
d931716cde
commit
3f016215a8
@ -3473,6 +3473,7 @@ func ($$rcvr *$$ParserImpl) Parse($$lex $$Lexer) int {
|
||||
var $$lval $$SymType
|
||||
var $$VAL $$SymType
|
||||
var $$Dollar []$$SymType
|
||||
_ = $$Dollar // silence set and not used
|
||||
$$S := make([]$$SymType, $$MaxDepth)
|
||||
|
||||
Nerrs := 0 /* number of errors */
|
||||
|
Loading…
Reference in New Issue
Block a user