From: Marcin Siodelski Date: Fri, 6 Mar 2015 19:23:59 +0000 (+0100) Subject: [3736] Remove the unreadVariable cppcheck error in rdata/template.cc X-Git-Tag: trac3764_base~14^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69d0ba4773d57a845f0b2b2018336a82f3e83067;p=thirdparty%2Fkea.git [3736] Remove the unreadVariable cppcheck error in rdata/template.cc --- 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(other); + // const MyType& other_mytype = dynamic_cast(other); // ... + return (0); } // END_RDATA_NAMESPACE