diff options
author | David du Colombier <0intro@gmail.com> | 2014-01-22 21:21:18 +0100 |
---|---|---|
committer | David du Colombier <0intro@gmail.com> | 2014-01-22 21:21:18 +0100 |
commit | f91fb84569a5f7bc1eef4f72ed3487678d8f030a (patch) | |
tree | bde8420e11bfb0e28d94c8441a17638a9e9bdec4 /src/cmd/ld/lib.c | |
parent | c4c6ae3b6d752f19fe29916e5e06cc108fef5761 (diff) | |
download | go-f91fb84569a5f7bc1eef4f72ed3487678d8f030a.tar.gz |
cmd/gc, cmd/ld: fix Plan 9 warnings
warning: /usr/go/src/cmd/gc/obj.c:23 format mismatch -10d VLONG, arg 9
warning: /usr/go/src/cmd/gc/plive.c:1680 set and not used: printed
warning: /usr/go/src/cmd/ld/lib.c:332 non-interruptable temporary
warning: /usr/go/src/cmd/ld/lib.c:338 non-interruptable temporary
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/53820046
Diffstat (limited to 'src/cmd/ld/lib.c')
-rw-r--r-- | src/cmd/ld/lib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c index 98fa7aa48..ac2417ee6 100644 --- a/src/cmd/ld/lib.c +++ b/src/cmd/ld/lib.c @@ -329,13 +329,15 @@ objfile(char *file, char *pkg) /* skip over optional __.GOSYMDEF and process __.PKGDEF */ off = Boffset(f); - if((l = nextar(f, off, &arhdr)) <= 0) { + l = nextar(f, off, &arhdr); + if(l <= 0) { diag("%s: short read on archive file symbol header", file); goto out; } if(strncmp(arhdr.name, symname, strlen(symname)) == 0) { off += l; - if((l = nextar(f, off, &arhdr)) <= 0) { + l = nextar(f, off, &arhdr); + if(l <= 0) { diag("%s: short read on archive file symbol header", file); goto out; } |