From: Marcin Siodelski Date: Tue, 13 Sep 2016 14:27:45 +0000 (+0200) Subject: [3161] Removed unread variable. X-Git-Tag: trac5006_base~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e67d8e08ef76f72b21e4e5ca2defda6644ec6d5;p=thirdparty%2Fkea.git [3161] Removed unread variable. Found by the clang-static analyzer. --- 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); }