summaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/debug')
-rw-r--r--src/pkg/debug/binary/binary.go2
-rw-r--r--src/pkg/debug/gosym/pclntab.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/debug/binary/binary.go b/src/pkg/debug/binary/binary.go
index 18c1d648b..78e9baa17 100644
--- a/src/pkg/debug/binary/binary.go
+++ b/src/pkg/debug/binary/binary.go
@@ -89,7 +89,7 @@ func Read(r io.Reader, order ByteOrder, data interface{}) os.Error {
return os.NewError("binary.Read: invalid type " + v.Type().String());
}
d := &decoder{order: order, buf: make([]byte, size)};
- if n, err := io.ReadFull(r, d.buf); err != nil {
+ if _, err := io.ReadFull(r, d.buf); err != nil {
return err;
}
d.value(v);
diff --git a/src/pkg/debug/gosym/pclntab.go b/src/pkg/debug/gosym/pclntab.go
index 9671d9aa0..b687cccf2 100644
--- a/src/pkg/debug/gosym/pclntab.go
+++ b/src/pkg/debug/gosym/pclntab.go
@@ -63,12 +63,12 @@ func (t *LineTable) slice(pc uint64) *LineTable {
}
func (t *LineTable) PCToLine(pc uint64) int {
- b, pc, line := t.parse(pc, -1);
+ _, _, line := t.parse(pc, -1);
return line;
}
func (t *LineTable) LineToPC(line int, maxpc uint64) uint64 {
- b, pc, line1 := t.parse(maxpc, line);
+ _, pc, line1 := t.parse(maxpc, line);
if line1 != line {
return 0;
}