]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: always initialize local variable
authorKefu Chai <kchai@redhat.com>
Mon, 27 May 2019 05:03:43 +0000 (13:03 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 May 2019 05:12:29 +0000 (13:12 +0800)
commit939c0323363a3b83f9d3e02c57c66b298ceb6e4e
tree9661acb3cef218ab15de6c3b8ca602107393e618
parentb97022ce553d278c60524950ca3b16825dac0839
mon/OSDMonitor: always initialize local variable

this change helps to silence warning like:

OSDMonitor.cc:13391:15: warning: ‘prio’ may be used uninitialized in
this function [-Wmaybe-uninitialized]
13391 |       int64_t prio;
      |               ^~~~

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