diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/gc/lex.c | 4 | ||||
| -rw-r--r-- | src/cmd/gc/subr.c | 2 | ||||
| -rw-r--r-- | src/cmd/gc/walk.c | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c index e6db4e7a7..8afc737f3 100644 --- a/src/cmd/gc/lex.c +++ b/src/cmd/gc/lex.c @@ -1610,7 +1610,7 @@ mkpackage(char* pkgname) // errors if a conflicting top-level name is // introduced by a different file. if(!s->def->used && !nsyntaxerrors) - yyerrorl(s->def->lineno, "imported and not used: %s", s->def->sym->name); + yyerrorl(s->def->lineno, "imported and not used: %Z", s->def->pkg->path); s->def = N; continue; } @@ -1618,7 +1618,7 @@ mkpackage(char* pkgname) // throw away top-level name left over // from previous import . "x" if(s->def->pack != N && !s->def->pack->used && !nsyntaxerrors) { - yyerrorl(s->def->pack->lineno, "imported and not used: %s", s->def->pack->sym->name); + yyerrorl(s->def->pack->lineno, "imported and not used: %Z", s->def->pack->pkg->path); s->def->pack->used = 1; } s->def = N; diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c index f6ca359e8..d3354c904 100644 --- a/src/cmd/gc/subr.c +++ b/src/cmd/gc/subr.c @@ -360,7 +360,7 @@ importdot(Pkg *opkg, Node *pack) } if(n == 0) { // can't possibly be used - there were no symbols - yyerrorl(pack->lineno, "imported and not used: %s", pack->sym->name); + yyerrorl(pack->lineno, "imported and not used: %Z", opkg->path); } } diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index fa63646c5..2f151307a 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -1128,7 +1128,6 @@ walkexpr(Node **np, NodeList **init) case OARRAYLIT: case OMAPLIT: case OSTRUCTLIT: - arraylit: nvar = nod(OXXX, N, N); tempname(nvar, n->type); anylit(n, nvar, init); |
