-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed as not planned
Closed as not planned
Copy link
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.Proposal
Milestone
Description
Go version
go version go1.23.2 X:boringcrypto linux/amd64
Output of go env in your module/workspace:
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT='boringcrypto'
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY='gitlab.eng.vmware.com,github.com/google/martian'
GONOSUMDB='*.eng.vmware.com'
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE='gitlab.eng.vmware.com,github.com/google/martian'
GOPROXY='http://avi-buildops-cache-server-blr.avilb.broadcom.net:9090,https://packages.vcfd.broadcom.net/srp-mds-go-remote,https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.2 X:boringcrypto'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='x86_64-vmk-linux-gnu-gcc'
CXX='x86_64-vmk-linux-gnu-g++'
CGO_ENABLED='0'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2580294929=/tmp/go-build -gno-record-gcc-switches'What did you do?
https://go.dev/play/p/a4Xm3Eidkd0
What did you see happen?
In above mentioned snippet i.e https://go.dev/play/p/a4Xm3Eidkd0 , demoStr is declared as parameter to function but never used within function.
What did you expect to see?
In above mentioned snippet i.e. https://go.dev/play/p/a4Xm3Eidkd0 , This should raise error for demoStr as its not being used within function, agnostic of caller is passing or not. If its defined as parameter it should be consumed.
earthboundkid, gazerro and tmthrgd
Metadata
Metadata
Assignees
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.Proposal