summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-20 19:20:12 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-20 19:20:12 +0000
commit01560dcec87e863e3d42e474d266e832054c9159 (patch)
tree3b09de04d7838179c50c0e45f812c0fba91911d3 /libgo
parent1aeeba05fb7dafa1685d586571753e1cc82019ab (diff)
downloadgcc-01560dcec87e863e3d42e474d266e832054c9159.tar.gz
runtime: remove unused variable
This variable is unused apparently as a result of local changes. gccgo accepts this variable declaration, but other frontends may not. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212873 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/reflect/value.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/libgo/go/reflect/value.go b/libgo/go/reflect/value.go
index cac083304ca..c390b8e2d6c 100644
--- a/libgo/go/reflect/value.go
+++ b/libgo/go/reflect/value.go
@@ -434,13 +434,12 @@ func (v Value) call(op string, in []Value) []Value {
// Get function pointer, type.
t := v.typ
var (
- fn unsafe.Pointer
- rcvr Value
- rcvrtype *rtype
+ fn unsafe.Pointer
+ rcvr Value
)
if v.flag&flagMethod != 0 {
rcvr = v
- rcvrtype, t, fn = methodReceiver(op, v, int(v.flag)>>flagMethodShift)
+ _, t, fn = methodReceiver(op, v, int(v.flag)>>flagMethodShift)
} else if v.flag&flagIndir != 0 {
fn = *(*unsafe.Pointer)(v.ptr)
} else {