diff options
author | David du Colombier <0intro@gmail.com> | 2014-03-03 22:30:34 +0100 |
---|---|---|
committer | David du Colombier <0intro@gmail.com> | 2014-03-03 22:30:34 +0100 |
commit | 63002b3e5ab034ff1317c21b994b803cd68a6eee (patch) | |
tree | 3cd18310b856864998bc34116275e8c4bff37eb7 /src/libventi | |
parent | 24b8994d3d3a30903b87c388114c7f5e7565d7fe (diff) | |
download | plan9port-63002b3e5ab034ff1317c21b994b803cd68a6eee.tar.gz plan9port-63002b3e5ab034ff1317c21b994b803cd68a6eee.tar.bz2 plan9port-63002b3e5ab034ff1317c21b994b803cd68a6eee.zip |
fix gcc 4.8 warnings
LGTM=rsc
R=rsc
https://codereview.appspot.com/33240044
Diffstat (limited to 'src/libventi')
-rw-r--r-- | src/libventi/file.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libventi/file.c b/src/libventi/file.c index ec9c1b7e..e97df39c 100644 --- a/src/libventi/file.c +++ b/src/libventi/file.c @@ -498,7 +498,6 @@ blockwalk(VtFile *r, VtBlock *p, int index, VtCache *c, int mode, VtEntry *e) VtBlock *b; int type, size; uchar *score; - VtEntry oe; switch(p->type){ case VtDataType: @@ -531,8 +530,6 @@ blockwalk(VtFile *r, VtBlock *p, int index, VtCache *c, int mode, VtEntry *e) if(vtglobaltolocal(b->score) != NilBlock) return b; - oe = *e; - /* * Copy on write. */ @@ -560,7 +557,6 @@ static int growdepth(VtFile *r, VtBlock *p, VtEntry *e, int depth) { VtBlock *b, *bb; - VtEntry oe; assert(ISLOCKED(r)); assert(depth <= VtPointerDepth); @@ -569,8 +565,6 @@ growdepth(VtFile *r, VtBlock *p, VtEntry *e, int depth) if(b == nil) return -1; - oe = *e; - /* * Keep adding layers until we get to the right depth * or an error occurs. @@ -599,7 +593,6 @@ static int shrinkdepth(VtFile *r, VtBlock *p, VtEntry *e, int depth) { VtBlock *b, *nb, *ob, *rb; - VtEntry oe; assert(ISLOCKED(r)); assert(depth <= VtPointerDepth); @@ -612,7 +605,6 @@ shrinkdepth(VtFile *r, VtBlock *p, VtEntry *e, int depth) * Walk down to the new root block. * We may stop early, but something is better than nothing. */ - oe = *e; ob = nil; b = rb; |