From: Michal 'vorner' Vaner Date: Wed, 12 Jun 2013 09:01:30 +0000 (+0200) Subject: [2726] Suppress warnings about unused functions X-Git-Tag: bind10-1.2.0beta1-release~400^2~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc488cb9679c44617fdac1aebb6a821bddd39736;p=thirdparty%2Fkea.git [2726] Suppress warnings about unused functions They are used, but cppcheck is probably confused about use from friend class and templates. I'd be confused myself and I'm not written in C++, so it is excused. --- diff --git a/src/lib/datasrc/memory/domaintree.h b/src/lib/datasrc/memory/domaintree.h index d6ab84f3c5..68b58a78d9 100644 --- a/src/lib/datasrc/memory/domaintree.h +++ b/src/lib/datasrc/memory/domaintree.h @@ -834,6 +834,7 @@ private: /// the top node /// /// \exception None + // cppcheck-suppress unusedPrivateFunction (false positive, it is used) void pop() { assert(!isEmpty()); --level_count_; @@ -846,6 +847,7 @@ private: /// otherwise the node should be the root node of DomainTree. /// /// \exception None + // cppcheck-suppress unusedPrivateFunction (false positive, it is used) void push(const DomainTreeNode* node) { assert(level_count_ < RBT_MAX_LEVEL); nodes_[level_count_++] = node;