From: Danny Al-Gaaf Date: Wed, 4 Jun 2014 22:12:01 +0000 (+0200) Subject: MemStore.cc: silence gcc -Wunused-variable X-Git-Tag: v0.83~134^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e24213ed26d6ecf0b88a5760e79fb3417f87cce8;p=ceph.git MemStore.cc: silence gcc -Wunused-variable 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 --- diff --git a/src/os/MemStore.cc b/src/os/MemStore.cc index 77fc7f5f63ea..f8ba939f9c5d 100644 --- a/src/os/MemStore.cc +++ b/src/os/MemStore.cc @@ -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;