]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2726] Suppress warnings about unused functions
authorMichal 'vorner' Vaner <vorner@vorner.cz>
Wed, 12 Jun 2013 09:01:30 +0000 (11:01 +0200)
committerMichal 'vorner' Vaner <vorner@vorner.cz>
Wed, 12 Jun 2013 09:01:30 +0000 (11:01 +0200)
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.

src/lib/datasrc/memory/domaintree.h

index d6ab84f3c517844716cf5e781dfa8f02e2f507cb..68b58a78d94fef87e5f113cfe747cedb6ca16879 100644 (file)
@@ -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<T>* node) {
         assert(level_count_ < RBT_MAX_LEVEL);
         nodes_[level_count_++] = node;