]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: always initialize local variable
authorKefu Chai <kchai@redhat.com>
Tue, 20 Aug 2019 08:15:17 +0000 (16:15 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 20 Aug 2019 08:39:47 +0000 (16:39 +0800)
commitd1539148656e8b3a8486bbc57df57168cb48403b
tree72e3e8cae9af65612bdea410d6ad2b22a41d13d7
parent122c17f55fad81b9c868460b959126b5d99e2eff
osd: always initialize local variable

to silence a GCC warning like:

../src/osd/OSD.cc:4608:24: warning: ‘sender_delta_ub’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
 4608 |       ceph::signedspan sender_delta_ub;
      |                        ^~~~~~~~~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.cc