Menu

False warning

2026-06-09
2026-06-09
  • Yves Roggeman

    Yves Roggeman - 2026-06-09

    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 - 2026-06-09

    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.

Auth0 Logo