1
0
mirror of https://github.com/golang/go synced 2024-11-23 20:00:04 -07:00

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
This commit is contained in:
Russ Cox 2013-10-29 11:50:18 -04:00
parent 3b0e6c21ae
commit b8be100d35

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