From b8be100d35109e8cd0abac91edec206df37b07c1 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 29 Oct 2013 11:50:18 -0400 Subject: [PATCH] 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 --- src/cmd/gc/mkbuiltin1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gc/mkbuiltin1.c b/src/cmd/gc/mkbuiltin1.c index f8f61c278f6..69027fdf5d2 100644 --- a/src/cmd/gc/mkbuiltin1.c +++ b/src/cmd/gc/mkbuiltin1.c @@ -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