aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2021-05-21 22:21:09 +0200
committerIan Lance Taylor <iant@golang.org>2021-08-19 20:50:13 +0000
commit65074a40867d9c42a6b89f96b9eeef5a39234846 (patch)
tree437af45610ced6a0cdf006521dc20c1355299480 /src
parent0e598e7da42aea47b6b9d52c4292f202368d2f19 (diff)
downloadgo-65074a40867d9c42a6b89f96b9eeef5a39234846.tar.gz
go-65074a40867d9c42a6b89f96b9eeef5a39234846.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/dist/build.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
index bec17696f3..33a329e48b 100644
--- a/src/cmd/dist/build.go
+++ b/src/cmd/dist/build.go
@@ -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"