From 63002b3e5ab034ff1317c21b994b803cd68a6eee Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Mon, 3 Mar 2014 22:30:34 +0100 Subject: fix gcc 4.8 warnings LGTM=rsc R=rsc https://codereview.appspot.com/33240044 --- src/libventi/file.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/libventi') 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; -- cgit v1.2.3