1
0
mirror of https://github.com/golang/go synced 2024-11-15 03:10:22 -07:00

[release-branch.go1.2] cmd/gc: silence clang warning

««« CL 19160043 / 104d56b5d664
cmd/gc: silence clang warning

This code is only built when you run 'make' in cmd/gc,
not in all.bash.

R=golang-dev, jsing, iant
CC=golang-dev
https://golang.org/cl/19160043
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/20290046
This commit is contained in:
Andrew Gerrand 2013-11-01 11:25:45 +11:00
parent 2737f274f5
commit d4bc355c56

View File

@ -62,7 +62,7 @@ begin:
// sys.go claims to be in package PACKAGE to avoid
// conflicts during "6g sys.go". rename PACKAGE to $2.
printf("\t\"");
while(q = strstr(p, "PACKAGE")) {
while((q = strstr(p, "PACKAGE")) != NULL) {
*q = 0;
esc(p); // up to the substitution
printf("%s", name); // the sub name