From 10f12aeff72a7075603ca92b666237a9134ee3a4 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 12 Oct 2009 11:03:48 -0700 Subject: sort errors by line number turn off testdclstack and "not used" errors when there are syntax errors. BUG=2181825 R=ken OCL=35606 CL=35608 --- src/cmd/gc/dcl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/cmd/gc/dcl.c') diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index 2a154ab5a..fc0cd6b82 100644 --- a/src/cmd/gc/dcl.c +++ b/src/cmd/gc/dcl.c @@ -1193,10 +1193,8 @@ addmethod(Sym *sf, Type *t, int local) fatal("addmethod: not TFIELD: %N", f); if(strcmp(sf->name, f->sym->name) != 0) continue; - if(!eqtype(t, f->type)) { - yyerror("method redeclared: %T.%S", pa, sf); - print("\t%T\n\t%T\n", f->type, t); - } + if(!eqtype(t, f->type)) + yyerror("method redeclared: %T.%S\n\t%T\n\t%T", pa, sf, f->type, t); return; } -- cgit v1.2.3