mirror of
https://github.com/golang/go
synced 2024-11-11 23:20:24 -07:00
cmd/dist: remove unused variables
Remove the unused defaultcflags and defaultldflags variables. Reported by staticcheck. Change-Id: Icc42f2e670496dbe2ffb26abe25128d8e53e2a6d Reviewed-on: https://go-review.googlesource.com/c/go/+/321931 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
parent
0e598e7da4
commit
65074a4086
5
src/cmd/dist/build.go
vendored
5
src/cmd/dist/build.go
vendored
@ -48,8 +48,6 @@ var (
|
||||
exe string
|
||||
defaultcc map[string]string
|
||||
defaultcxx map[string]string
|
||||
defaultcflags string
|
||||
defaultldflags string
|
||||
defaultpkgconfig string
|
||||
defaultldso string
|
||||
|
||||
@ -209,9 +207,6 @@ func xinit() {
|
||||
defaultcc = compilerEnv("CC", cc)
|
||||
defaultcxx = compilerEnv("CXX", cxx)
|
||||
|
||||
defaultcflags = os.Getenv("CFLAGS")
|
||||
defaultldflags = os.Getenv("LDFLAGS")
|
||||
|
||||
b = os.Getenv("PKG_CONFIG")
|
||||
if b == "" {
|
||||
b = "pkg-config"
|
||||
|
Loading…
Reference in New Issue
Block a user