]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3161] Removed unread variable.
authorMarcin Siodelski <marcin@isc.org>
Tue, 13 Sep 2016 14:27:45 +0000 (16:27 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 13 Sep 2016 14:28:04 +0000 (16:28 +0200)
Found by the clang-static analyzer.

src/lib/util/tests/stopwatch_unittest.cc

index 4c455e2814c3461e5c044ba9b67bce44015d5e7c..c2fdb6c63b76ece6ab399af2fd869fc931bd42d8 100644 (file)
@@ -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);
 }