From 38244018ce0d99d0364e408f3d77484a10d39dc6 Mon Sep 17 00:00:00 2001 From: Daniel Morsing Date: Thu, 14 Feb 2013 21:11:47 +0100 Subject: [PATCH] cmd/gc: remove node printing in redeclare errors I suspect this is some debugging which got through the submission process. Fixes #4789. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7310079 --- src/cmd/gc/dcl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index 20b0ab904f..b2fefb18c8 100644 --- a/src/cmd/gc/dcl.c +++ b/src/cmd/gc/dcl.c @@ -171,9 +171,9 @@ redeclare(Sym *s, char *where) line1 = s->lastlineno; } - yyerrorl(line1, "%S redeclared %s (%#N)\n" + yyerrorl(line1, "%S redeclared %s\n" "\tprevious declaration at %L", - s, where, s->def, line2); + s, where, line2); } } -- 2.48.1