mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Merge pull request #1969 from proller/fix8
Fix gcc "may be used uninitialized" warning
This commit is contained in:
commit
a36d683e4e
@ -39,10 +39,10 @@ public:
|
|||||||
double elapsedSeconds() const { return static_cast<double>(elapsed()) / 1000000000ULL; }
|
double elapsedSeconds() const { return static_cast<double>(elapsed()) / 1000000000ULL; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UInt64 start_ns;
|
UInt64 start_ns = 0;
|
||||||
UInt64 stop_ns;
|
UInt64 stop_ns = 0;
|
||||||
clockid_t clock_type;
|
clockid_t clock_type;
|
||||||
bool is_running;
|
bool is_running = false;
|
||||||
|
|
||||||
UInt64 nanoseconds() const { return StopWatchDetail::nanoseconds(clock_type); }
|
UInt64 nanoseconds() const { return StopWatchDetail::nanoseconds(clock_type); }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user