fix gcc 4.8 warnings
LGTM=rsc R=rsc https://codereview.appspot.com/33240044
This commit is contained in:
parent
24b8994d3d
commit
63002b3e5a
6 changed files with 5 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue