Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
KeyValueStore.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 e24213e commit 53533ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/KeyValueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1451,8 +1451,8 @@ unsigned KeyValueStore::_do_transaction(Transaction& transaction,
// TODO: can kvstore make use of the hint?
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 53533ee

Please sign in to comment.