2026-05-01 09:30 ftp://ftp.de.debian.org/debian/pool/main/c/chess.app/chess.app_2.8.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: 25 25 elapsed-time: 3.7 3.0 head-timing-info: old-timing-info: head results: chess.app-33/gnuchess.c:727:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] chess.app-33/gnuchess.c:538:17: error: Buffer is accessed out of bounds: mvstr2 [bufferAccessOutOfBounds] chess.app-33/gnuchess.c:727:3: portability: fflush() called on input stream 'stdin' may result in undefined behaviour on non-linux systems. [fflushOnInputStream] chess.app-33/gnuchess.c:567:9: style: Variable 'score' is reassigned a value before the old one has been used. [redundantAssignment] chess.app-33/gnuchess.c:565:11: note: score is assigned chess.app-33/gnuchess.c:567:9: note: score is overwritten chess.app-33/gnuchess.c:2093:3: style: Variable 'm0' is assigned an expression that holds the same value. [redundantAssignment] chess.app-33/gnuchess.c:2058:6: note: m0 is assigned 'map[sq]' here. chess.app-33/gnuchess.c:2093:3: note: Variable 'm0' is assigned an expression that holds the same value. chess.app-33/gnuchess.c:1749:22: error: Expression 'a[u]=++a[u]|c' depends on order of evaluation of side effects [unknownEvaluationOrder] chess.app-33/gnuchess.c:1759:20: error: Expression 'a[u]=++a[u]|c' depends on order of evaluation of side effects [unknownEvaluationOrder] chess.app-33/gnuchess.c:1825:7: style: Local variable 'winner' shadows outer variable [shadowVariable] chess.app-33/gnuchess.c:398:7: note: Shadowed declaration chess.app-33/gnuchess.c:1825:7: note: Shadow variable chess.app-33/gnuchess.c:416:22: style: Parameter 's' can be declared as pointer to const [constParameterPointer] chess.app-33/gnuchess.c:422:14: style: Variable 'node' can be declared as pointer to const [constVariablePointer] chess.app-33/gnuchess.c:682:37: style: Parameter 'mi' can be declared as pointer to const [constParameterPointer] chess.app-33/gnuchess.c:750:19: style: Variable 'mp' can be declared as pointer to const [constVariablePointer] chess.app-33/gnuchess.c:1278:38: style: Variable 'PL' can be declared as pointer to const [constVariablePointer] chess.app-33/gnuchess.c:1403:16: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] chess.app-33/gnuchess.c:1486:16: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] chess.app-33/gnuchess.c:1487:10: style: Parameter 'tempb' can be declared as pointer to const [constParameterPointer] chess.app-33/gnuchess.c:1488:10: style: Parameter 'tempc' can be declared as pointer to const [constParameterPointer] chess.app-33/gnuchess.c:1489:10: style: Parameter 'tempsf' can be declared as pointer to const [constParameterPointer] chess.app-33/gnuchess.c:1490:10: style: Parameter 'tempst' can be declared as pointer to const [constParameterPointer] chess.app-33/gnuchess.c:1688:26: style: Variable 'PL' can be declared as pointer to const [constVariablePointer] chess.app-33/gnuchess.c:1728:34: style: Variable 'PL' can be declared as pointer to const [constVariablePointer] chess.app-33/gnuchess.c:2120:25: style: Variable 'Kf' can be declared as pointer to const [constVariablePointer] chess.app-33/gnuchess.c:2423:23: style: Parameter 'a' can be declared as const array [constParameter] chess.app-33/gnuchess.c:2423:35: style: Parameter 'b' can be declared as const array [constParameter] chess.app-33/gnuchess.c:2431:22: style: Parameter 'a' can be declared as const array [constParameter] diff: DONE