2026-05-01 12:13 ftp://ftp.de.debian.org/debian/pool/main/c/compreffor/compreffor_0.6.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 45 45 elapsed-time: 0.8 0.6 head-timing-info: old-timing-info: head results: compreffor-0.6.0/src/cxx/cffCompressor.cc:586:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable first [valueFlowBailoutIncompleteVar] compreffor-0.6.0/src/cxx/cffCompressor.cc:931:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable first [valueFlowBailoutIncompleteVar] compreffor-0.6.0/src/cxx/cffCompressor.cc:1018:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] compreffor-0.6.0/src/cxx/cffCompressor.cc:1094:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] compreffor-0.6.0/src/cxx/cffCompressor.cc:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] compreffor-0.6.0/src/cxx/cffCompressor.cc:110:14: warning: Member variable 'substring_t::adjCost' is not initialized in the constructor. [uninitMemberVar] compreffor-0.6.0/src/cxx/cffCompressor.cc:110:14: warning: Member variable 'substring_t::price' is not initialized in the constructor. [uninitMemberVar] compreffor-0.6.0/src/cxx/cffCompressor.cc:113:14: warning:inconclusive: Member variable 'substring_t::encoding' is not assigned in the copy constructor. Should it be copied? [missingMemberCopy] compreffor-0.6.0/src/cxx/cffCompressor.cc:113:14: warning: Member variable 'substring_t::adjCost' is not initialized in the copy constructor. [uninitMemberVar] compreffor-0.6.0/src/cxx/cffCompressor.cc:113:14: warning: Member variable 'substring_t::price' is not initialized in the copy constructor. [uninitMemberVar] compreffor-0.6.0/src/cxx/cffCompressor.cc:197:27: warning: Member variable 'substring_t::pos' is not assigned a value in 'substring_t::operator='. [operatorEqVarError] compreffor-0.6.0/src/cxx/cffCompressor.cc:197:27: warning:inconclusive: Member variable 'substring_t::flatten' is not assigned a value in 'substring_t::operator='. [operatorEqVarError] compreffor-0.6.0/src/cxx/cffCompressor.cc:197:27: warning:inconclusive: Member variable 'substring_t::encoding' is not assigned a value in 'substring_t::operator='. [operatorEqVarError] compreffor-0.6.0/src/cxx/cffCompressor.cc:197:27: warning: Member variable 'substring_t::adjCost' is not assigned a value in 'substring_t::operator='. [operatorEqVarError] compreffor-0.6.0/src/cxx/cffCompressor.cc:197:27: warning: Member variable 'substring_t::price' is not assigned a value in 'substring_t::operator='. [operatorEqVarError] compreffor-0.6.0/src/cxx/cffCompressor.cc:103:3: performance: Variable 'begin' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] compreffor-0.6.0/src/cxx/cffCompressor.cc:125:26: style:inconclusive: Technically the member function 'substring_t::toString' can be const. [functionConst] compreffor-0.6.0/src/cxx/cffCompressor.h:112:17: note: Technically the member function 'substring_t::toString' can be const. compreffor-0.6.0/src/cxx/cffCompressor.cc:125:26: note: Technically the member function 'substring_t::toString' can be const. compreffor-0.6.0/src/cxx/cffCompressor.cc:416:47: style: The member function 'charstring_pool_t::formatInt' can be static. [functionStatic] compreffor-0.6.0/src/cxx/cffCompressor.h:185:32: note: The member function 'charstring_pool_t::formatInt' can be static. compreffor-0.6.0/src/cxx/cffCompressor.cc:416:47: note: The member function 'charstring_pool_t::formatInt' can be static. compreffor-0.6.0/src/cxx/cffCompressor.cc:293:25: style: The member function 'charstring_pool_t::writeEncoding' can be static. [functionStatic] compreffor-0.6.0/src/cxx/cffCompressor.h:221:10: note: The member function 'charstring_pool_t::writeEncoding' can be static. compreffor-0.6.0/src/cxx/cffCompressor.cc:293:25: note: The member function 'charstring_pool_t::writeEncoding' can be static. compreffor-0.6.0/src/cxx/cffCompressor.cc:347:29: style: The member function 'charstring_pool_t::packEncoding' can be static. [functionStatic] compreffor-0.6.0/src/cxx/cffCompressor.h:225:14: note: The member function 'charstring_pool_t::packEncoding' can be static. compreffor-0.6.0/src/cxx/cffCompressor.cc:347:29: note: The member function 'charstring_pool_t::packEncoding' can be static. compreffor-0.6.0/src/cxx/cffCompressor.cc:772:19: style: C-style pointer casting [cstyleCast] compreffor-0.6.0/src/cxx/cffCompressor.cc:231:43: style:inconclusive: Function 'setAdjCost' argument 1 names different: declaration 'value' definition 'val'. [funcArgNamesDifferent] compreffor-0.6.0/src/cxx/cffCompressor.h:127:27: note: Function 'setAdjCost' argument 1 names different: declaration 'value' definition 'val'. compreffor-0.6.0/src/cxx/cffCompressor.cc:231:43: note: Function 'setAdjCost' argument 1 names different: declaration 'value' definition 'val'. compreffor-0.6.0/src/cxx/cffCompressor.cc:285:65: style:inconclusive: Function 'charstring_pool_t' argument 2 names different: declaration 'numRounds' definition '_nrounds'. [funcArgNamesDifferent] compreffor-0.6.0/src/cxx/cffCompressor.h:176:50: note: Function 'charstring_pool_t' argument 2 names different: declaration 'numRounds' definition '_nrounds'. compreffor-0.6.0/src/cxx/cffCompressor.cc:285:65: note: Function 'charstring_pool_t' argument 2 names different: declaration 'numRounds' definition '_nrounds'. compreffor-0.6.0/src/cxx/cffCompressor.cc:313:39: style:inconclusive: Function 'writeSubrs' argument 1 names different: declaration 'substrings' definition 'subrs'. [funcArgNamesDifferent] compreffor-0.6.0/src/cxx/cffCompressor.h:178:41: note: Function 'writeSubrs' argument 1 names different: declaration 'substrings' definition 'subrs'. compreffor-0.6.0/src/cxx/cffCompressor.cc:313:39: note: Function 'writeSubrs' argument 1 names different: declaration 'substrings' definition 'subrs'. compreffor-0.6.0/src/cxx/cffCompressor.cc:368:39: style:inconclusive: Function 'getResponse' argument 1 names different: declaration 'substrings' definition 'subrs'. [funcArgNamesDifferent] compreffor-0.6.0/src/cxx/cffCompressor.h:182:41: note: Function 'getResponse' argument 1 names different: declaration 'substrings' definition 'subrs'. compreffor-0.6.0/src/cxx/cffCompressor.cc:368:39: note: Function 'getResponse' argument 1 names different: declaration 'substrings' definition 'subrs'. compreffor-0.6.0/src/cxx/cffCompressor.cc:1004:14: style: Local variable 'len' shadows outer variable [shadowVariable] compreffor-0.6.0/src/cxx/cffCompressor.cc:1002:12: note: Shadowed declaration compreffor-0.6.0/src/cxx/cffCompressor.cc:1004:14: note: Shadow variable compreffor-0.6.0/src/cxx/cffCompressor.cc:1061:14: style: Local variable 'len' shadows outer variable [shadowVariable] compreffor-0.6.0/src/cxx/cffCompressor.cc:1059:12: note: Shadowed declaration compreffor-0.6.0/src/cxx/cffCompressor.cc:1061:14: note: Shadow variable compreffor-0.6.0/src/cxx/cffCompressor.cc:313:39: style: Parameter 'subrs' can be declared as reference to const [constParameterReference] compreffor-0.6.0/src/cxx/cffCompressor.cc:314:43: style: Parameter 'glyphEncodings' can be declared as reference to const [constParameterReference] compreffor-0.6.0/src/cxx/cffCompressor.cc:368:39: style: Parameter 'subrs' can be declared as reference to const [constParameterReference] compreffor-0.6.0/src/cxx/cffCompressor.cc:369:43: style: Parameter 'glyphEncodings' can be declared as reference to const [constParameterReference] compreffor-0.6.0/src/cxx/cffCompressor.cc:593:26: style: Parameter 'csPool' can be declared as reference to const [constParameterReference] compreffor-0.6.0/src/cxx/cffCompressor.cc:902:42: style: Parameter 'lcp' can be declared as reference to const [constParameterReference] compreffor-0.6.0/src/cxx/cffCompressor.cc:903:42: style: Parameter 'suffixes' can be declared as reference to const [constParameterReference] compreffor-0.6.0/src/cxx/cffCompressor.cc:921:54: style: Parameter 'suffixes' can be declared as reference to const [constParameterReference] compreffor-0.6.0/src/cxx/cffCompressor.cc:102:64: style: Parameter 'pool' can be declared as pointer to const [constParameterPointer] compreffor-0.6.0/src/cxx/cffCompressor.cc:1046:18: style: Variable 'offsetBuffer' can be declared as pointer to const [constVariablePointer] compreffor-0.6.0/src/cxx/cffCompressor.cc:159:9: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] compreffor-0.6.0/src/cxx/cffCompressor.cc:373:12: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] compreffor-0.6.0/src/cxx/cffCompressor.cc:376:12: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] compreffor-0.6.0/src/cxx/cffCompressor.cc:405:9: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] compreffor-0.6.0/src/cxx/cffCompressor.cc:410:9: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] compreffor-0.6.0/src/cxx/cffCompressor.cc:540:27: style: Variable 'response' is assigned a value that is never used. [unreadVariable] compreffor-0.6.0/src/cxx/cffCompressor.cc:1002:12: style: Unused variable: len [unusedVariable] compreffor-0.6.0/src/cxx/cffCompressor.cc:1059:12: style: Unused variable: len [unusedVariable] diff: DONE