From 8c640f54f81b5071b24e8d71638f4761ce3e78e3 Mon Sep 17 00:00:00 2001 From: Ivan Lezhankin Date: Tue, 5 Feb 2019 13:19:34 +0300 Subject: [PATCH] Fix clang-7 warnings --- dbms/programs/client/Client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/programs/client/Client.cpp b/dbms/programs/client/Client.cpp index 1582eb69d90..ee61b7dec78 100644 --- a/dbms/programs/client/Client.cpp +++ b/dbms/programs/client/Client.cpp @@ -1037,7 +1037,7 @@ private: while (true) { - Stopwatch watch(CLOCK_MONOTONIC_COARSE); + Stopwatch receive_watch(CLOCK_MONOTONIC_COARSE); while (true) { @@ -1062,7 +1062,7 @@ private: } else { - double elapsed = watch.elapsedSeconds(); + double elapsed = receive_watch.elapsedSeconds(); if (elapsed > receive_timeout.totalSeconds()) { std::cout << "Timeout exceeded while receiving data from server."