mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Fix gcc "may be used uninitialized" warning
This commit is contained in:
parent
2a56dd075f
commit
720a11fe4e
@ -39,10 +39,10 @@ public:
|
||||
double elapsedSeconds() const { return static_cast<double>(elapsed()) / 1000000000ULL; }
|
||||
|
||||
private:
|
||||
UInt64 start_ns;
|
||||
UInt64 stop_ns;
|
||||
UInt64 start_ns = 0;
|
||||
UInt64 stop_ns = 0;
|
||||
clockid_t clock_type;
|
||||
bool is_running;
|
||||
bool is_running = false;
|
||||
|
||||
UInt64 nanoseconds() const { return StopWatchDetail::nanoseconds(clock_type); }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user