From: Yedidya Feldblum Date: Wed, 14 Oct 2015 00:28:55 +0000 (-0700) Subject: Fix Build: address some maybe-uninitialized warnings in folly/io/async/EventBase.cpp X-Git-Tag: deprecate-dynamic-initializer~330 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dca00970158ede9bcbbea9dea9bc0b6014be1191;p=folly.git Fix Build: address some maybe-uninitialized warnings in folly/io/async/EventBase.cpp Summary: [Folly] Fix Build: address some `maybe-uninitialized` warnings in `folly/io/async/EventBase.cpp`. Reviewed By: @meyering Differential Revision: D2535753 fb-gh-sync-id: ff32f6957675d3b6d0267b1a59fb0c3aac4fe86e --- diff --git a/folly/io/async/EventBase.cpp b/folly/io/async/EventBase.cpp index b3a12a4a..2ec1e90d 100644 --- a/folly/io/async/EventBase.cpp +++ b/folly/io/async/EventBase.cpp @@ -312,7 +312,7 @@ bool EventBase::loopBody(int flags) { // time-measurement variables. std::chrono::steady_clock::time_point prev; - int64_t idleStart; + int64_t idleStart = 0; int64_t busy; int64_t idle;