]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/perf_local: fix -Wmaybe-uninitialized warnings 10934/head
authorKefu Chai <kchai@redhat.com>
Wed, 31 Aug 2016 10:46:53 +0000 (18:46 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 31 Aug 2016 10:46:53 +0000 (18:46 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/perf_local.cc

index 7320dcd6d53a0c121fe70094a25f72066980093a..a8646f37de8c897aafe3731e9bd6d34213f746e0 100644 (file)
@@ -184,7 +184,7 @@ double buffer_basic()
 }
 
 struct DummyBlock {
-  int a, b, c, d;
+  int a = 1, b = 2, c = 3, d = 4;
   void encode(bufferlist &bl) const {
     ENCODE_START(1, 1, bl);
     ::encode(a, bl);