From 74447948b5a767ca038049f97ebd0bcf020e0760 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 19 Mar 2018 10:33:04 -0400 Subject: Avoid throwing out of destructor This can't really happen but could in Coverity's mind. --- src/cli/speed.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index 80228bcd8..01e41e323 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -163,7 +163,11 @@ class Timer final } ~Timer_Scope() { - m_timer.stop(); + try + { + m_timer.stop(); + } + catch(...) {} } private: Timer& m_timer; -- cgit v1.2.3