summaryrefslogtreecommitdiff
path: root/src/cmd/gc/dcl.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-10-12 11:03:48 -0700
committerRuss Cox <rsc@golang.org>2009-10-12 11:03:48 -0700
commit10f12aeff72a7075603ca92b666237a9134ee3a4 (patch)
tree5f484f38ace460f43a76330bb972aabd8e431f4a /src/cmd/gc/dcl.c
parentefa39fa7cc4e0413ee534342783f032276b6514d (diff)
downloadgolang-10f12aeff72a7075603ca92b666237a9134ee3a4.tar.gz
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
Diffstat (limited to 'src/cmd/gc/dcl.c')
-rw-r--r--src/cmd/gc/dcl.c6
1 files changed, 2 insertions, 4 deletions
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;
}