summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/rdata
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2015-03-06 20:23:59 +0100
committerMarcin Siodelski <marcin@isc.org>2015-03-06 20:23:59 +0100
commit69d0ba4773d57a845f0b2b2018336a82f3e83067 (patch)
tree65826f76e09bbd07ac629cd5318f5abfceef1b03 /src/lib/dns/rdata
parent[3736] Fixed cppcheck variableScope error in perfdhcp. (diff)
downloadkea-69d0ba4773d57a845f0b2b2018336a82f3e83067.tar.xz
kea-69d0ba4773d57a845f0b2b2018336a82f3e83067.zip
[3736] Remove the unreadVariable cppcheck error in rdata/template.cc
Diffstat (limited to 'src/lib/dns/rdata')
-rw-r--r--src/lib/dns/rdata/template.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/dns/rdata/template.cc b/src/lib/dns/rdata/template.cc
index 6486e6a51a..0f196a1d27 100644
--- a/src/lib/dns/rdata/template.cc
+++ b/src/lib/dns/rdata/template.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011,2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
@@ -61,11 +61,12 @@ MyType::toWire(AbstractMessageRenderer& renderer) const {
}
int
-MyType::compare(const Rdata& other) const {
+MyType::compare(const Rdata&) const {
// The compare method normally begins with this dynamic cast.
// cppcheck-suppress unreadVariable
- const MyType& other_mytype = dynamic_cast<const MyType&>(other);
+ // const MyType& other_mytype = dynamic_cast<const MyType&>(other);
// ...
+ return (0);
}
// END_RDATA_NAMESPACE