]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3736] Remove the unreadVariable cppcheck error in rdata/template.cc
authorMarcin Siodelski <marcin@isc.org>
Fri, 6 Mar 2015 19:23:59 +0000 (20:23 +0100)
committerMarcin Siodelski <marcin@isc.org>
Fri, 6 Mar 2015 19:23:59 +0000 (20:23 +0100)
src/lib/dns/rdata/template.cc

index 6486e6a51a1c883fe83319ce76ecfe04a38bfe06..0f196a1d27913fe79de6be53354429a7fe5ed218 100644 (file)
@@ -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