Skip to content

Commit

Permalink
MemStore.cc: silence gcc -Wunused-variable
Browse files Browse the repository at this point in the history
Don't assign return value of i.get_length() to a variable until
they are really used. Added comment on what is the intention of
the variables.

Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Jun 4, 2014
1 parent cac902e commit e24213e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/MemStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -953,8 +953,8 @@ void MemStore::_do_transaction(Transaction& t)
{
coll_t cid(i.get_cid());
ghobject_t oid = i.get_oid();
uint64_t expected_object_size = i.get_length();
uint64_t expected_write_size = i.get_length();
i.get_length(); // uint64_t expected_object_size
i.get_length(); // uint64_t expected_write_size
}
break;

Expand Down

0 comments on commit e24213e

Please sign in to comment.