Parcourir la source

[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.
Michal 'vorner' Vaner il y a 12 ans
Parent
commit
dc488cb967
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/lib/datasrc/memory/domaintree.h

+ 2 - 0
src/lib/datasrc/memory/domaintree.h

@@ -834,6 +834,7 @@ private:
     /// the top node
     /// the top node
     ///
     ///
     /// \exception None
     /// \exception None
+    // cppcheck-suppress unusedPrivateFunction (false positive, it is used)
     void pop() {
     void pop() {
         assert(!isEmpty());
         assert(!isEmpty());
         --level_count_;
         --level_count_;
@@ -846,6 +847,7 @@ private:
     /// otherwise the node should be the root node of DomainTree.
     /// otherwise the node should be the root node of DomainTree.
     ///
     ///
     /// \exception None
     /// \exception None
+    // cppcheck-suppress unusedPrivateFunction (false positive, it is used)
     void push(const DomainTreeNode<T>* node) {
     void push(const DomainTreeNode<T>* node) {
         assert(level_count_ < RBT_MAX_LEVEL);
         assert(level_count_ < RBT_MAX_LEVEL);
         nodes_[level_count_++] = node;
         nodes_[level_count_++] = node;