1
0
mirror of https://github.com/golang/go synced 2024-11-12 10:00:25 -07:00

cmd/cc: restore correct meaning of %Q

g% 6c ~/x.c
/Users/rsc/x.c:1 duplicate types given: STRUCT s and VOID
/Users/rsc/x.c:1 no return at end of function: f
g%

Fixes #6083.

R=ken2
CC=golang-dev
https://golang.org/cl/12691043
This commit is contained in:
Russ Cox 2013-08-08 21:06:06 -04:00
parent 94179d61ab
commit 237e7c134c

View File

@ -118,6 +118,7 @@ main(int argc, char *argv[])
{
int c;
quotefmtinstall(); // before cinit, which overrides %Q
ensuresymb(NSYMB);
memset(debug, 0, sizeof(debug));
tinit();
@ -126,7 +127,6 @@ main(int argc, char *argv[])
arginit();
fmtstrinit(&pragcgobuf);
quotefmtinstall();
tufield = simplet((1L<<tfield->etype) | BUNSIGNED);
ndef = 0;