BIND 10 trac2544, updated. f64ff7004ddec6c81538b2fc5d6827de6b79cfb8 [2544] Silence the false positive reported by cppcheck.
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Dec 19 16:14:31 UTC 2012
The branch, trac2544 has been updated
via f64ff7004ddec6c81538b2fc5d6827de6b79cfb8 (commit)
from 667d94d93788e24158ebbec640f006f49b7d438c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f64ff7004ddec6c81538b2fc5d6827de6b79cfb8
Author: Marcin Siodelski <marcin at isc.org>
Date: Wed Dec 19 17:14:21 2012 +0100
[2544] Silence the false positive reported by cppcheck.
The cppcheck seems to have difficulty to figure out that the variable is
set and initialized within a loop and that it is read within another
loop iteration.
-----------------------------------------------------------------------
Summary of changes:
src/bin/dhcp4/tests/config_parser_unittest.cc | 1 +
src/bin/dhcp6/tests/config_parser_unittest.cc | 1 +
2 files changed, 2 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/tests/config_parser_unittest.cc b/src/bin/dhcp4/tests/config_parser_unittest.cc
index b88cdcc..3dd75d7 100644
--- a/src/bin/dhcp4/tests/config_parser_unittest.cc
+++ b/src/bin/dhcp4/tests/config_parser_unittest.cc
@@ -131,6 +131,7 @@ public:
if (!first) {
stream << ", ";
} else {
+ // cppcheck-suppress unreadVariable
first = false;
}
if (param.first == "name") {
diff --git a/src/bin/dhcp6/tests/config_parser_unittest.cc b/src/bin/dhcp6/tests/config_parser_unittest.cc
index 1440338..812eb68 100644
--- a/src/bin/dhcp6/tests/config_parser_unittest.cc
+++ b/src/bin/dhcp6/tests/config_parser_unittest.cc
@@ -97,6 +97,7 @@ public:
if (!first) {
stream << ", ";
} else {
+ // cppcheck-suppress unreadVariable
first = false;
}
if (param.first == "name") {
More information about the bind10-changes
mailing list