2026-05-02 20:34 ftp://ftp.de.debian.org/debian/pool/main/k/klustakwik/klustakwik_3.0.2+ds.orig.tar.bz2 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.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 88 88 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: MKK_sourceforge/io.cpp:82:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] MKK_sourceforge/numerics.h:105:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] MKK_sourceforge/io.cpp:16:7: style: The scope of the variable 'fnamemask' can be reduced. [variableScope] MKK_sourceforge/io.cpp:17:7: style: The scope of the variable 'fnamefmask' can be reduced. [variableScope] MKK_sourceforge/io.cpp:25:6: style: The scope of the variable 'maskstatus' can be reduced. [variableScope] MKK_sourceforge/io.cpp:29:9: style: The scope of the variable 'max' can be reduced. [variableScope] MKK_sourceforge/io.cpp:29:14: style: The scope of the variable 'min' can be reduced. [variableScope] MKK_sourceforge/numerics.h:89:11: style: Checking if unsigned expression 'offset' is less than zero. [unsignedLessThanZero] MKK_sourceforge/io.cpp:13:25: style: Parameter 'FileBase' can be declared as pointer to const [constParameterPointer] MKK_sourceforge/io.cpp:13:53: style: Parameter 'UseFeatures' can be declared as pointer to const [constParameterPointer] MKK_sourceforge/klustakwik.cpp:461:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] MKK_sourceforge/klustakwik.cpp:729:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] MKK_sourceforge/klustakwik.cpp:846:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] MKK_sourceforge/klustakwik.cpp:1396:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] MKK_sourceforge/klustakwik.cpp:431:8: style: The if condition is the same as the previous if condition [duplicateCondition] MKK_sourceforge/klustakwik.cpp:395:8: note: First condition MKK_sourceforge/klustakwik.cpp:431:8: note: Second condition MKK_sourceforge/klustakwik.cpp:254:9: style: C-style pointer casting [cstyleCast] MKK_sourceforge/klustakwik.cpp:255:9: style: C-style pointer casting [cstyleCast] MKK_sourceforge/klustakwik.cpp:256:9: style: C-style pointer casting [cstyleCast] MKK_sourceforge/klustakwik.cpp:512:37: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] MKK_sourceforge/klustakwik.cpp:532:18: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] MKK_sourceforge/klustakwik.cpp:488:9: style: The scope of the variable 'c' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:651:11: style: The scope of the variable 'forcesubmatrixcompute' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:750:9: style: The scope of the variable 'c' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:750:16: style: The scope of the variable 'TopClass' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:750:26: style: The scope of the variable 'SecondClass' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:754:9: style: The scope of the variable 'ThisScore' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:754:20: style: The scope of the variable 'BestScore' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:754:31: style: The scope of the variable 'SecondScore' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:854:9: style: The scope of the variable 'c' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:967:7: style: The scope of the variable 'c' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:968:10: style: The scope of the variable 'tScore' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:1113:16: style: The scope of the variable 'OldScore' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:1349:9: style: The scope of the variable 'Score' can be reduced. [variableScope] MKK_sourceforge/klustakwik.cpp:833:24: style:inconclusive: Function 'LoadClu' argument 1 names different: declaration 'StartCluFile' definition 'CluFile'. [funcArgNamesDifferent] MKK_sourceforge/klustakwik.h:72:24: note: Function 'LoadClu' argument 1 names different: declaration 'StartCluFile' definition 'CluFile'. MKK_sourceforge/klustakwik.cpp:833:24: note: Function 'LoadClu' argument 1 names different: declaration 'StartCluFile' definition 'CluFile'. MKK_sourceforge/klustakwik.cpp:1106:35: style:inconclusive: Function 'CEM' argument 2 names different: declaration 'recurse' definition 'Recurse'. [funcArgNamesDifferent] MKK_sourceforge/klustakwik.h:68:32: note: Function 'CEM' argument 2 names different: declaration 'recurse' definition 'Recurse'. MKK_sourceforge/klustakwik.cpp:1106:35: note: Function 'CEM' argument 2 names different: declaration 'recurse' definition 'Recurse'. MKK_sourceforge/klustakwik.cpp:273:15: style: Local variable 'cc' shadows outer variable [shadowVariable] MKK_sourceforge/klustakwik.cpp:250:12: note: Shadowed declaration MKK_sourceforge/klustakwik.cpp:273:15: note: Shadow variable MKK_sourceforge/klustakwik.cpp:274:17: style: Local variable 'c' shadows outer variable [shadowVariable] MKK_sourceforge/klustakwik.cpp:250:9: note: Shadowed declaration MKK_sourceforge/klustakwik.cpp:274:17: note: Shadow variable MKK_sourceforge/klustakwik.cpp:539:12: style: Local variable 'i' shadows outer variable [shadowVariable] MKK_sourceforge/klustakwik.cpp:488:16: note: Shadowed declaration MKK_sourceforge/klustakwik.cpp:539:12: note: Shadow variable MKK_sourceforge/klustakwik.cpp:541:12: style: Local variable 'i' shadows outer variable [shadowVariable] MKK_sourceforge/klustakwik.cpp:488:16: note: Shadowed declaration MKK_sourceforge/klustakwik.cpp:541:12: note: Shadow variable MKK_sourceforge/klustakwik.cpp:697:15: style: Local variable 'i' shadows outer variable [shadowVariable] MKK_sourceforge/klustakwik.cpp:610:16: note: Shadowed declaration MKK_sourceforge/klustakwik.cpp:697:15: note: Shadow variable MKK_sourceforge/klustakwik.cpp:1112:14: style: Local variable 'OldClass' shadows outer variable [shadowVariable] MKK_sourceforge/klustakwik.h:122:14: note: Shadowed declaration MKK_sourceforge/klustakwik.cpp:1112:14: note: Shadow variable MKK_sourceforge/klustakwik.cpp:187:16: style: Variable 'PointsInThisClass' can be declared as reference to const [constVariableReference] MKK_sourceforge/klustakwik.cpp:368:19: style: Variable 'PointsInThisClass' can be declared as reference to const [constVariableReference] MKK_sourceforge/klustakwik.cpp:400:23: style: Variable 'PointsInThisClass' can be declared as reference to const [constVariableReference] MKK_sourceforge/klustakwik.cpp:385:15: style: Variable 'cv2mjptr' can be declared as pointer to const [constVariablePointer] MKK_sourceforge/klustakwik.cpp:76:22: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] MKK_sourceforge/klustakwik.cpp:548:10: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] MKK_sourceforge/klustakwik.cpp:579:11: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] MKK_sourceforge/klustakwik.cpp:715:36: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] MKK_sourceforge/klustakwik.cpp:879:24: style: Consider using std::copy_if algorithm instead of a raw loop. [useStlAlgorithm] MKK_sourceforge/klustakwik.cpp:887:35: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] MKK_sourceforge/klustakwik.cpp:954:12: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] MKK_sourceforge/klustakwik.cpp:1009:14: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] MKK_sourceforge/klustakwik.cpp:1167:14: error: Uninitialized variable: Score [uninitvar] MKK_sourceforge/klustakwik.cpp:1212:9: error: Uninitialized variable: Score [legacyUninitvar] MKK_sourceforge/klustakwik.cpp:251:25: style: Variable 'Vec2Mean' is assigned a value that is never used. [unreadVariable] MKK_sourceforge/klustakwik.cpp:840:12: style: Variable 'status' is assigned a value that is never used. [unreadVariable] MKK_sourceforge/linalg.cpp:27:9: style: The scope of the variable 'sum' can be reduced. [variableScope] MKK_sourceforge/linalg.cpp:24:33: style: Parameter 'In' can be declared as reference to const [constParameterReference] MKK_sourceforge/linalg.cpp:54:56: style: Parameter 'x' can be declared as reference to const [constParameterReference] MKK_sourceforge/linalg.cpp:59:11: style: Variable 'MiD' can be declared as pointer to const [constVariablePointer] MKK_sourceforge/log.cpp:41:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] MKK_sourceforge/parameters.cpp:32:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] MKK_sourceforge/parameters.cpp:50:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] MKK_sourceforge/parameters.cpp:166:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] MKK_sourceforge/parameters.cpp:104:6: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:106:6: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:109:7: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:111:7: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:114:12: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:144:22: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:146:7: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:175:34: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:177:26: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:179:26: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:181:25: style: C-style pointer casting [cstyleCast] MKK_sourceforge/parameters.cpp:39:7: style: The scope of the variable 'fname' can be reduced. [variableScope] MKK_sourceforge/parameters.cpp:123:22: style:inconclusive: Function 'init_params' argument 1 names different: declaration 'argc' definition 'ac'. [funcArgNamesDifferent] MKK_sourceforge/parameters.h:123:22: note: Function 'init_params' argument 1 names different: declaration 'argc' definition 'ac'. MKK_sourceforge/parameters.cpp:123:22: note: Function 'init_params' argument 1 names different: declaration 'argc' definition 'ac'. MKK_sourceforge/parameters.cpp:123:33: style:inconclusive: Function 'init_params' argument 2 names different: declaration 'argv' definition 'av'. [funcArgNamesDifferent] MKK_sourceforge/parameters.h:123:35: note: Function 'init_params' argument 2 names different: declaration 'argv' definition 'av'. MKK_sourceforge/parameters.cpp:123:33: note: Function 'init_params' argument 2 names different: declaration 'argv' definition 'av'. MKK_sourceforge/parameters.cpp:96:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] MKK_sourceforge/parameters.cpp:96:36: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] MKK_sourceforge/parameters.cpp:129:32: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] MKK_sourceforge/parameters.cpp:160:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] MKK_sourceforge/precomputations.cpp:142:2: style: Class 'KKSort' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] MKK_sourceforge/precomputations.cpp:128:27: style: Variable 'safeSortedMaskChange[p]' is assigned a value that is never used. [unreadVariable] MKK_sourceforge/util.cpp:27:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] MKK_sourceforge/util.cpp:22:24: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] MKK_sourceforge/util.cpp:22:37: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] diff: DONE