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/swt.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/cmd/gc/swt.c') diff --git a/src/cmd/gc/swt.c b/src/cmd/gc/swt.c index 09d8c564d..1cd4cfaa8 100644 --- a/src/cmd/gc/swt.c +++ b/src/cmd/gc/swt.c @@ -395,9 +395,7 @@ mkcaselist(Node *sw, int arg) if(typecmp(c1, c1->link) != 0) continue; setlineno(c1->link->node); - yyerror("duplicate case in switch"); - print("\tprevious case at %L\n", - c1->node->lineno); + yyerror("duplicate case in switch\n\tprevious case at %L", c1->node->lineno); } break; case Snorm: @@ -408,9 +406,7 @@ mkcaselist(Node *sw, int arg) if(exprcmp(c1, c1->link) != 0) continue; setlineno(c1->link->node); - yyerror("duplicate case in switch"); - print("\tprevious case at %L\n", - c1->node->lineno); + yyerror("duplicate case in switch\n\tprevious case at %L", c1->node->lineno); } break; } -- cgit v1.2.3