Menu

False warning

1 day ago
18 hours ago
  • Yves Roggeman

    Yves Roggeman - 1 day ago

    Command used: cppcheck --language=c++ --std=c++26 --enable=warning,style,performance,portability --template=gcc --check-level=exhaustive

    Message: PoplarSort.hpp:57:31: note: Unused private function: 'Forest::_bsf1'

    But it is effectively used at line 65 (and method pop() is effectively called).

     
  • CHR

    CHR - 18 hours ago

    The false positive is caused by the use of C++26 contract assertions. A workaround might be appending -Dpre(x)= to the command line.

     

Log in to post a comment.