This silences the following warning:
Finisher.cc: In member function ‘void*
Finisher::finisher_thread_entry()’:
Finisher.cc:89:42: warning: ‘count’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
logger->dec(l_finisher_queue_len, count);
^
Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
ldout(cct, 10) << "finisher_thread start" << dendl;
utime_t start;
- uint64_t count;
+ uint64_t count = 0;
while (!finisher_stop) {
/// Every time we are woken up, we process the queue until it is empty.
while (!finisher_queue.empty()) {