Skip to content

Commit 1d0977a

Browse files
cmd/cgo: add missing formatting directive in error message
Fixes #15310. Change-Id: I588b3c630a20a6878f7cd00f9af29b1dd8a4abf6 Reviewed-on: https://go-review.googlesource.com/22100 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent d57a118 commit 1d0977a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/cgo/gcc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ func (p *Package) rewriteRef(f *File) {
10091009
if r.Name.Kind == "var" {
10101010
expr = &ast.StarExpr{Star: (*r.Expr).Pos(), X: expr}
10111011
} else {
1012-
error_(r.Pos(), "only C variables allowed in selector expression", fixGo(r.Name.Go))
1012+
error_(r.Pos(), "only C variables allowed in selector expression %s", fixGo(r.Name.Go))
10131013
}
10141014

10151015
case "type":

0 commit comments

Comments
 (0)