]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3736] Remove redundant assignment cppcheck warning in the d2_udp_unittest.cc
authorMarcin Siodelski <marcin@isc.org>
Fri, 6 Mar 2015 19:36:31 +0000 (20:36 +0100)
committerMarcin Siodelski <marcin@isc.org>
Fri, 6 Mar 2015 19:36:31 +0000 (20:36 +0100)
src/lib/dhcpsrv/tests/d2_udp_unittest.cc

index e6b27ca7f64a4eb2dfe0ec460104c0043e5ecbfc..94626d373e21e6da346a35b3bc528dad18b826f2 100644 (file)
@@ -113,8 +113,8 @@ public:
 
         FD_ZERO(&read_fds);
 
-        int select_fd = -1;
         // cppcheck-suppress redundantAssignment
+        int select_fd = -1;
         ASSERT_NO_THROW(select_fd = getSelectFd());
 
         FD_SET(select_fd,  &read_fds);