2026-03-20 11:54 ftp://ftp.de.debian.org/debian/pool/main/b/black-box/black-box_1.4.8.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=sdl --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-106-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 4412833 (2026-03-20 08:27:05 +0100) count: 33 33 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: black-box-1.4.8/src/SFont.c:97:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SRCCOLORKEY [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/SFont.c:207:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_RETURN [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/SFont.c:63:10: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] black-box-1.4.8/src/SFont.c:245:33: style:inconclusive: Function 'SFont_Input2' argument 1 names different: declaration 'Destination' definition 'Dest'. [funcArgNamesDifferent] black-box-1.4.8/src/SFont.h:80:33: note: Function 'SFont_Input2' argument 1 names different: declaration 'Destination' definition 'Dest'. black-box-1.4.8/src/SFont.c:245:33: note: Function 'SFont_Input2' argument 1 names different: declaration 'Destination' definition 'Dest'. black-box-1.4.8/src/SFont.c:245:79: style:inconclusive: Function 'SFont_Input2' argument 5 names different: declaration 'Width' definition 'PixelWidth'. [funcArgNamesDifferent] black-box-1.4.8/src/SFont.h:80:86: note: Function 'SFont_Input2' argument 5 names different: declaration 'Width' definition 'PixelWidth'. black-box-1.4.8/src/SFont.c:245:79: note: Function 'SFont_Input2' argument 5 names different: declaration 'Width' definition 'PixelWidth'. black-box-1.4.8/src/SFont.c:249:32: style:inconclusive: Function 'SFont_Input' argument 1 names different: declaration 'Destination' definition 'Dest'. [funcArgNamesDifferent] black-box-1.4.8/src/SFont.h:79:33: note: Function 'SFont_Input' argument 1 names different: declaration 'Destination' definition 'Dest'. black-box-1.4.8/src/SFont.c:249:32: note: Function 'SFont_Input' argument 1 names different: declaration 'Destination' definition 'Dest'. black-box-1.4.8/src/SFont.c:249:56: style:inconclusive: Function 'SFont_Input' argument 4 names different: declaration 'Width' definition 'PixelWidth'. [funcArgNamesDifferent] black-box-1.4.8/src/SFont.h:79:64: note: Function 'SFont_Input' argument 4 names different: declaration 'Width' definition 'PixelWidth'. black-box-1.4.8/src/SFont.c:249:56: note: Function 'SFont_Input' argument 4 names different: declaration 'Width' definition 'PixelWidth'. black-box-1.4.8/src/SFont.c:38:12: style: Variable 'bits' can be declared as pointer to const [constVariablePointer] black-box-1.4.8/src/SFont.c:106:81: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] black-box-1.4.8/src/SFont.c:142:44: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] black-box-1.4.8/src/SFont.c:214:27: error: Undefined behavior: Variable 'text' is used as parameter and destination in sprintf(). [sprintfOverlappingData] black-box-1.4.8/src/SFont.c:144:12: style: Variable 'ofs' is assigned a value that is never used. [unreadVariable] black-box-1.4.8/src/blackbox.c:898:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] black-box-1.4.8/src/blackbox.c:69:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/blackbox.c:133:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/blackbox.c:176:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_VIDEO [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/blackbox.c:224:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SRCALPHA [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/blackbox.c:385:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quot [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/blackbox.c:434:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/blackbox.c:743:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quot [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/blackbox.c:887:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_S16 [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/blackbox.c:900:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] black-box-1.4.8/src/blackbox.c:659:7: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] black-box-1.4.8/src/blackbox.c:875:9: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] black-box-1.4.8/src/blackbox.c:230:8: style: Local variable 'text' shadows outer variable [shadowVariable] black-box-1.4.8/src/blackbox.c:49:13: note: Shadowed declaration black-box-1.4.8/src/blackbox.c:230:8: note: Shadow variable black-box-1.4.8/src/blackbox.c:611:8: style: Local variable 'text' shadows outer variable [shadowVariable] black-box-1.4.8/src/blackbox.c:49:13: note: Shadowed declaration black-box-1.4.8/src/blackbox.c:611:8: note: Shadow variable black-box-1.4.8/src/blackbox.c:117:30: style: Parameter 'datafile' can be declared as pointer to const [constParameterPointer] black-box-1.4.8/src/blackbox.c:398:22: style: Parameter 'map' can be declared as const array [constParameter] black-box-1.4.8/src/blackbox.c:272:9: style: Unused variable: i [unusedVariable] black-box-1.4.8/src/blackbox.c:294:7: style: Unused variable: x [unusedVariable] black-box-1.4.8/src/blackbox.c:316:7: style: Unused variable: x [unusedVariable] black-box-1.4.8/src/blackbox.c:338:7: style: Unused variable: y [unusedVariable] black-box-1.4.8/src/blackbox.c:360:7: style: Unused variable: y [unusedVariable] diff: DONE