]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
MemStore.cc: silence gcc -Wunused-variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 4 Jun 2014 22:12:01 +0000 (00:12 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 4 Jun 2014 22:12:01 +0000 (00:12 +0200)
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 <danny.al-gaaf@bisect.de>
src/os/MemStore.cc

index 77fc7f5f63ea1f7d4413ba46a1a8df674ef9a052..f8ba939f9c5de7d65c70104584b3040260013a1a 100644 (file)
@@ -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;