]> Cypherpunks repositories - gostls13.git/commitdiff
libmach: fix build (set and not used)
authorRuss Cox <rsc@golang.org>
Wed, 27 Feb 2013 03:51:47 +0000 (22:51 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 27 Feb 2013 03:51:47 +0000 (22:51 -0500)
TBR=golang-dev
CC=golang-dev
https://golang.org/cl/7401053

src/libmach/sym.c

index 345bcd18b8159f38d8ec47f3628f3ad80703d694..120328d09a8d055457ed5dbdbeebf7b566174b77 100644 (file)
@@ -110,7 +110,7 @@ syminit(int fd, Fhdr *fp)
 {
        Sym *p;
        int32 i, l, size;
-       vlong vl, off;
+       vlong vl;
        Biobuf b;
        int svalsz, newformat, shift;
        uvlong (*swav)(uvlong);
@@ -167,7 +167,6 @@ syminit(int fd, Fhdr *fp)
        size = 0;
        for(p = symbols; size < fp->symsz; p++, nsym++) {
                if(newformat) {
-                       off = Boffset(&b);
                        // Go 1.1 format. See comment at top of ../pkg/runtime/symtab.c.
                        if(Bread(&b, &c, 1) != 1)
                                return symerrmsg(1, "symbol");