2024-03-27 01:35 ftp://ftp.de.debian.org/debian/pool/main/f/fizmo-sdl2/fizmo-sdl2_0.8.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=sdl --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.13.0 head-info: 2e06f02 (2024-03-26 23:13:15 +0100) count: 24 13 elapsed-time: 18.8 2.8 head-timing-info: old-timing-info: head results: fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:968:62: debug: Function::addArguments found argument 'param' with varid 0. [varid0] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1111:47: debug: Function::addArguments found argument 'visible' with varid 0. [varid0] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1141:53: debug: Function::addArguments found argument 'ptr' with varid 0. [varid0] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:254:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_FAILURE [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:539:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRILBO_IMAGE_TYPE_RGB [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:624:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable blorb_map [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:889:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:919:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENT_WAS_WINCH [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:974:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENT_WAS_TIMEOUT [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1029:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENT_WAS_NOTHING [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1116:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_COLOUR_WHITE [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1121:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_COLOUR_BLACK [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1133:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1177:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_WINDOWEVENT [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1310:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_FAILURE [valueFlowBailoutIncompleteVar] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:568:21: error: Shifting by a negative value is undefined behaviour [shiftNegative] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:569:23: error: Shifting by a negative value is undefined behaviour [shiftNegative] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:570:22: error: Shifting by a negative value is undefined behaviour [shiftNegative] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:583:21: error: Shifting by a negative value is undefined behaviour [shiftNegative] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:471:41: style: Parameter 'key' can be declared as pointer to const. However it seems that 'parse_config_parameter' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1241:4: note: You might need to cast the function pointer here fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:471:41: note: Parameter 'key' can be declared as pointer to const fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:508:37: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_config_value' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1242:4: note: You might need to cast the function pointer here fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:508:37: note: Parameter 'key' can be declared as pointer to const fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:531:12: style: Variable 'image_data' can be declared as pointer to const [constVariablePointer] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:617:53: style: Parameter 'story' can be declared as pointer to const. However it seems that 'link_interface_to_story' is a callback function, if 'story' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1244:4: note: You might need to cast the function pointer here fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:617:53: note: Parameter 'story' can be declared as pointer to const fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1430:22: style: Variable 'new_color' is assigned a value that is never used. [unreadVariable] diff: head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1029:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENT_WAS_NOTHING [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1116:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_COLOUR_WHITE [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1121:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_COLOUR_BLACK [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1133:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1177:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_WINDOWEVENT [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:1310:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_FAILURE [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:539:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRILBO_IMAGE_TYPE_RGB [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:624:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable blorb_map [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:889:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:919:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENT_WAS_WINCH [valueFlowBailoutIncompleteVar] head fizmo-sdl2-0.8.5/src/fizmo-sdl2/fizmo-sdl2.c:974:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENT_WAS_TIMEOUT [valueFlowBailoutIncompleteVar] DONE