From 0e67d8e08ef76f72b21e4e5ca2defda6644ec6d5 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Tue, 13 Sep 2016 16:27:45 +0200 Subject: [PATCH] [3161] Removed unread variable. Found by the clang-static analyzer. --- src/lib/util/tests/stopwatch_unittest.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/util/tests/stopwatch_unittest.cc b/src/lib/util/tests/stopwatch_unittest.cc index 4c455e2814..c2fdb6c63b 100644 --- a/src/lib/util/tests/stopwatch_unittest.cc +++ b/src/lib/util/tests/stopwatch_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -246,7 +246,6 @@ TEST_F(StopwatchTest, realTime) { usleep(1000); // The durations should get updated as appropriate. - current_duration = stopwatch.getLastMilliseconds(); EXPECT_GE(stopwatch.getLastMilliseconds(), 1); EXPECT_GE(stopwatch.getTotalMilliseconds(), 2); } -- 2.47.2