2025-11-25 21:58 ftp://ftp.de.debian.org/debian/pool/main/d/dmagnetic/dmagnetic_0.37.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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 796b181 (2025-11-25 16:14:10 +0100) count: 213 213 elapsed-time: 1.9 2.1 head-timing-info: old-timing-info: head results: dmagnetic-0.37/src/frontends/default/default_palette.c:157:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_MAX_RGB_VALUE [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/default_callbacks.c:260:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/default_callbacks.c:666:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/default_render.c:145:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_C64 [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/default_render.c:323:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_HALFTONE [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/default_render.c:558:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_MAX_RGB_VALUE [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/default_render.c:693:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_MAX_RGB_VALUE [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/default_render.c:854:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_MAX_RGB_VALUE [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/configuration.c:32:75: style:inconclusive: Function 'retrievefromini' argument 5 names different: declaration 'retstringsize' definition 'retstringspace'. [funcArgNamesDifferent] dmagnetic-0.37/src/frontends/default/configuration.h:31:75: note: Function 'retrievefromini' argument 5 names different: declaration 'retstringsize' definition 'retstringspace'. dmagnetic-0.37/src/frontends/default/configuration.c:32:75: note: Function 'retrievefromini' argument 5 names different: declaration 'retstringsize' definition 'retstringspace'. dmagnetic-0.37/src/frontends/default/configuration.c:101:9: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/frontends/default/configuration.c:35:6: note: Shadowed declaration dmagnetic-0.37/src/frontends/default/configuration.c:101:9: note: Shadow variable dmagnetic-0.37/src/frontends/default/configuration.c:32:35: style: Parameter 'section' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/configuration.c:32:49: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/configuration.c:120:56: style: Parameter 'parameter' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/helpscreens.c:232:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/helpscreens.c:337:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/helpscreens.c:486:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/main.c:62:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/main.c:112:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BINTYPE_NONE [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/main.c:299:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXFILENAMESIZE [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/main.c:355:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXFILENAMESIZE [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/helpscreens.c:265:30: style: Parameter 'argv0' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:45:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:90:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tdMagneticPicture [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:90:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:96:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: magbuf [nullPointerOutOfMemory] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:84:15: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/helloworld/helloworld.c:84:15: note: Assignment 'magbuf=malloc(184000)', assigned value is 0 dmagnetic-0.37/src/frontends/helloworld/helloworld.c:96:17: note: Null pointer dereference dmagnetic-0.37/src/frontends/helloworld/helloworld.c:96:48: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:95:10: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/helloworld/helloworld.c:95:10: note: Assignment 'f=fopen(argv[1],"rb")', assigned value is 0 dmagnetic-0.37/src/frontends/helloworld/helloworld.c:96:48: note: Null pointer dereference dmagnetic-0.37/src/frontends/helloworld/helloworld.c:97:10: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:95:10: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/helloworld/helloworld.c:95:10: note: Assignment 'f=fopen(argv[1],"rb")', assigned value is 0 dmagnetic-0.37/src/frontends/helloworld/helloworld.c:97:10: note: Null pointer dereference dmagnetic-0.37/src/frontends/helloworld/helloworld.c:100:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: gfxbuf [nullPointerOutOfMemory] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:86:15: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/helloworld/helloworld.c:86:15: note: Assignment 'gfxbuf=malloc(2540000)', assigned value is 0 dmagnetic-0.37/src/frontends/helloworld/helloworld.c:100:17: note: Null pointer dereference dmagnetic-0.37/src/frontends/helloworld/helloworld.c:100:48: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:99:10: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/helloworld/helloworld.c:99:10: note: Assignment 'f=fopen(argv[2],"rb")', assigned value is 0 dmagnetic-0.37/src/frontends/helloworld/helloworld.c:100:48: note: Null pointer dereference dmagnetic-0.37/src/frontends/helloworld/helloworld.c:101:10: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:99:10: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/helloworld/helloworld.c:99:10: note: Assignment 'f=fopen(argv[2],"rb")', assigned value is 0 dmagnetic-0.37/src/frontends/helloworld/helloworld.c:101:10: note: Null pointer dereference dmagnetic-0.37/src/frontends/helloworld/helloworld.c:35:21: style: Parameter 'context' can be declared as pointer to const. However it seems that 'cb_output' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:104:35: note: You might need to cast the function pointer here dmagnetic-0.37/src/frontends/helloworld/helloworld.c:35:21: note: Parameter 'context' can be declared as pointer to const dmagnetic-0.37/src/frontends/helloworld/helloworld.c:35:35: style: Parameter 'headline' can be declared as pointer to const. However it seems that 'cb_output' is a callback function, if 'headline' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:104:35: note: You might need to cast the function pointer here dmagnetic-0.37/src/frontends/helloworld/helloworld.c:35:35: note: Parameter 'headline' can be declared as pointer to const dmagnetic-0.37/src/frontends/helloworld/helloworld.c:35:50: style: Parameter 'text' can be declared as pointer to const. However it seems that 'cb_output' is a callback function, if 'text' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:104:35: note: You might need to cast the function pointer here dmagnetic-0.37/src/frontends/helloworld/helloworld.c:35:50: note: Parameter 'text' can be declared as pointer to const dmagnetic-0.37/src/frontends/helloworld/helloworld.c:35:61: style: Parameter 'picname' can be declared as pointer to const. However it seems that 'cb_output' is a callback function, if 'picname' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:104:35: note: You might need to cast the function pointer here dmagnetic-0.37/src/frontends/helloworld/helloworld.c:35:61: note: Parameter 'picname' can be declared as pointer to const dmagnetic-0.37/src/frontends/helloworld/helloworld.c:51:22: style: Parameter 'context' can be declared as pointer to const. However it seems that 'cb_picture' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:106:37: note: You might need to cast the function pointer here dmagnetic-0.37/src/frontends/helloworld/helloworld.c:51:22: note: Parameter 'context' can be declared as pointer to const dmagnetic-0.37/src/frontends/helloworld/helloworld.c:51:49: style: Parameter 'picture' can be declared as pointer to const. However it seems that 'cb_picture' is a callback function, if 'picture' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:106:37: note: You might need to cast the function pointer here dmagnetic-0.37/src/frontends/helloworld/helloworld.c:51:49: note: Parameter 'picture' can be declared as pointer to const dmagnetic-0.37/src/frontends/helloworld/helloworld.c:51:63: style: Parameter 'picname' can be declared as pointer to const. However it seems that 'cb_picture' is a callback function, if 'picname' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dmagnetic-0.37/src/frontends/helloworld/helloworld.c:106:37: note: You might need to cast the function pointer here dmagnetic-0.37/src/frontends/helloworld/helloworld.c:51:63: note: Parameter 'picname' can be declared as pointer to const dmagnetic-0.37/src/frontends/helloworld/helloworld.c:53:6: style: Unused variable: i [unusedVariable] dmagnetic-0.37/src/frontends/default/default_callbacks.c:321:29: style:inconclusive: Function 'default_setEngine' argument 1 names different: declaration 'hContext' definition 'context'. [funcArgNamesDifferent] dmagnetic-0.37/src/frontends/default/default_callbacks.h:51:29: note: Function 'default_setEngine' argument 1 names different: declaration 'hContext' definition 'context'. dmagnetic-0.37/src/frontends/default/default_callbacks.c:321:29: note: Function 'default_setEngine' argument 1 names different: declaration 'hContext' definition 'context'. dmagnetic-0.37/src/frontends/default/default_callbacks.c:205:7: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/frontends/default/default_callbacks.c:177:6: note: Shadowed declaration dmagnetic-0.37/src/frontends/default/default_callbacks.c:205:7: note: Shadow variable dmagnetic-0.37/src/frontends/default/default_callbacks.c:714:8: style: Local variable 'result' shadows outer variable [shadowVariable] dmagnetic-0.37/src/frontends/default/default_callbacks.c:608:7: note: Shadowed declaration dmagnetic-0.37/src/frontends/default/default_callbacks.c:714:8: note: Shadow variable dmagnetic-0.37/src/frontends/default/default_callbacks.c:119:29: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/default_callbacks.c:174:45: style: Parameter 'headline' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/default_callbacks.c:548:44: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/default_callbacks.c:548:59: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/default_callbacks.c:572:44: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/libdmagnetic/dMagnetic.c:60:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/dMagnetic.c:109:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/dMagnetic.c:190:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_OK [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:152:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:223:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:435:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:442:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:504:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_OK [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:517:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_OK [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:524:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:546:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:560:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:572:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:586:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_UNKNOWN_INSTRUCTION [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:1561:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:1573:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:1587:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:1601:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:1614:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINEA_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:70:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_DEFAULT [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:193:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_DEFAULT [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:345:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_MAX_WIDTH [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:608:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_DEFAULT [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:889:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_C64 [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:1328:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PICTURE_BITS_PER_RGB_CHANNEL [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/frontends/default/main.c:552:6: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/frontends/default/main.c:542:6: note: First condition dmagnetic-0.37/src/frontends/default/main.c:552:6: note: Second condition dmagnetic-0.37/src/frontends/default/main.c:385:16: style: Condition 'f_inifile==NULL' is always true [knownConditionTrueFalse] dmagnetic-0.37/src/frontends/default/main.c:384:13: note: Assignment 'f_inifile=NULL', assigned value is 0 dmagnetic-0.37/src/frontends/default/main.c:385:16: note: Condition 'f_inifile==NULL' is always true dmagnetic-0.37/src/frontends/default/main.c:603:17: style: Condition 'dumpmaggfx(argc,argv,magbuf,magsize,gfxbuf,gfxsize)' is always false [knownConditionTrueFalse] dmagnetic-0.37/src/frontends/default/main.c:603:17: note: Calling function 'dumpmaggfx' returns 0 dmagnetic-0.37/src/frontends/default/main.c:603:17: note: Condition 'dumpmaggfx(argc,argv,magbuf,magsize,gfxbuf,gfxsize)' is always false dmagnetic-0.37/src/frontends/default/main.c:309:38: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/frontends/default/main.c:304:10: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/default/main.c:304:10: note: Assignment 'f=fopen(filename,"wb")', assigned value is 0 dmagnetic-0.37/src/frontends/default/main.c:309:38: note: Null pointer dereference dmagnetic-0.37/src/frontends/default/main.c:310:10: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/frontends/default/main.c:304:10: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/default/main.c:304:10: note: Assignment 'f=fopen(filename,"wb")', assigned value is 0 dmagnetic-0.37/src/frontends/default/main.c:310:10: note: Null pointer dereference dmagnetic-0.37/src/frontends/default/main.c:321:38: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/frontends/default/main.c:316:10: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/default/main.c:316:10: note: Assignment 'f=fopen(filename,"wb")', assigned value is 0 dmagnetic-0.37/src/frontends/default/main.c:321:38: note: Null pointer dereference dmagnetic-0.37/src/frontends/default/main.c:322:10: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/frontends/default/main.c:316:10: note: Assuming allocation function fails dmagnetic-0.37/src/frontends/default/main.c:316:10: note: Assignment 'f=fopen(filename,"wb")', assigned value is 0 dmagnetic-0.37/src/frontends/default/main.c:322:10: note: Null pointer dereference dmagnetic-0.37/src/frontends/default/main.c:656:8: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/frontends/default/main.c:335:6: note: Shadowed declaration dmagnetic-0.37/src/frontends/default/main.c:656:8: note: Shadow variable dmagnetic-0.37/src/frontends/default/main.c:50:25: style: Parameter 'context' can be declared as pointer to const. However it seems that 'cbDumpPicture' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dmagnetic-0.37/src/frontends/default/main.c:613:46: note: You might need to cast the function pointer here dmagnetic-0.37/src/frontends/default/main.c:50:25: note: Parameter 'context' can be declared as pointer to const dmagnetic-0.37/src/frontends/default/main.c:50:67: style: Parameter 'picname' can be declared as pointer to const. However it seems that 'cbDumpPicture' is a callback function, if 'picname' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dmagnetic-0.37/src/frontends/default/main.c:613:46: note: You might need to cast the function pointer here dmagnetic-0.37/src/frontends/default/main.c:50:67: note: Parameter 'picname' can be declared as pointer to const dmagnetic-0.37/src/frontends/default/main.c:294:43: style: Parameter 'magbuf' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/main.c:294:68: style: Parameter 'gfxbuf' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/main.c:344:8: style: Variable 'homedir' can be declared as pointer to const [constVariablePointer] dmagnetic-0.37/src/frontends/default/default_render.c:697:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmagnetic-0.37/src/frontends/default/default_render.c:697:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmagnetic-0.37/src/frontends/default/default_render.c:697:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmagnetic-0.37/src/frontends/default/default_render.c:509:69: style:inconclusive: Function 'default_render_highansi' argument 3 names different: declaration 'cols' definition 'columns'. [funcArgNamesDifferent] dmagnetic-0.37/src/frontends/default/default_render.h:35:69: note: Function 'default_render_highansi' argument 3 names different: declaration 'cols' definition 'columns'. dmagnetic-0.37/src/frontends/default/default_render.c:509:69: note: Function 'default_render_highansi' argument 3 names different: declaration 'cols' definition 'columns'. dmagnetic-0.37/src/frontends/default/default_render.c:308:21: style: Local variable 'p' shadows outer variable [shadowVariable] dmagnetic-0.37/src/frontends/default/default_render.c:269:20: note: Shadowed declaration dmagnetic-0.37/src/frontends/default/default_render.c:308:21: note: Shadow variable dmagnetic-0.37/src/frontends/default/default_render.c:570:11: style: Local variable 'red' shadows outer variable [shadowVariable] dmagnetic-0.37/src/frontends/default/default_render.c:536:10: note: Shadowed declaration dmagnetic-0.37/src/frontends/default/default_render.c:570:11: note: Shadow variable dmagnetic-0.37/src/frontends/default/default_render.c:570:15: style: Local variable 'green' shadows outer variable [shadowVariable] dmagnetic-0.37/src/frontends/default/default_render.c:536:14: note: Shadowed declaration dmagnetic-0.37/src/frontends/default/default_render.c:570:15: note: Shadow variable dmagnetic-0.37/src/frontends/default/default_render.c:570:21: style: Local variable 'blue' shadows outer variable [shadowVariable] dmagnetic-0.37/src/frontends/default/default_render.c:536:20: note: Shadowed declaration dmagnetic-0.37/src/frontends/default/default_render.c:570:21: note: Shadow variable dmagnetic-0.37/src/frontends/default/default_render.c:639:7: style: Local variable 'j' shadows outer variable [shadowVariable] dmagnetic-0.37/src/frontends/default/default_render.c:604:8: note: Shadowed declaration dmagnetic-0.37/src/frontends/default/default_render.c:639:7: note: Shadow variable dmagnetic-0.37/src/frontends/default/default_render.c:135:34: style: Parameter 'allowed' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/default_render.c:267:35: style: Parameter 'allowed' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/frontends/default/default_render.c:412:37: style: Parameter 'greyscales' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:59:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_NOK_UNKNOWN_INSTRUCTION [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:194:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_OK [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:233:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_OK [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:260:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_OK [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:326:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_NOK_UNKNOWN_INSTRUCTION [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:107:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:116:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:148:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:924:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_NOK_INVALID_PTR [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:972:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_OK [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:988:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM68K_OK [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:280:39: style:inconclusive: Boolean expression '!msbres' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:280:51: style:inconclusive: Boolean expression '!msbres' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:282:27: style:inconclusive: Boolean expression '!msbres' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:282:47: style:inconclusive: Boolean expression '!msb1' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:291:22: style:inconclusive: Boolean expression '!msb2' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:291:39: style:inconclusive: Boolean expression '!msb2' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:293:25: style:inconclusive: Boolean expression '!msb1' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:293:30: style:inconclusive: Boolean expression '!msbres' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:293:47: style:inconclusive: Boolean expression '!msb2' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:302:22: style:inconclusive: Boolean expression '!msb2' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:302:39: style:inconclusive: Boolean expression '!msb2' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:303:25: style:inconclusive: Boolean expression '!msb1' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:303:30: style:inconclusive: Boolean expression '!msbres' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:303:47: style:inconclusive: Boolean expression '!msb2' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k_loadstore.c:320:31: style: Parameter 'pVM68k' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:90:28: style:inconclusive: Boolean expression '!(((pVM68k->sr)>>2)&1)' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:425:50: style:inconclusive: Boolean expression 'instruction==VM68K_INST_NEGX' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:90:28: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:187:14: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:186:14: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:187:14: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:198:14: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:196:14: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:198:14: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:199:14: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:198:14: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:199:14: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:522:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:521:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:522:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:558:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:557:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:558:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:787:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:785:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:787:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:788:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:787:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:788:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:789:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:788:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:789:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:790:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:789:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:790:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:804:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:803:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:804:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:837:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:836:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:837:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:838:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:837:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:838:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:859:15: style: The if condition is the same as the previous if condition [duplicateCondition] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:858:15: note: First condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:859:15: note: Second condition dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:636:17: style: Local variable 'direction' shadows outer variable [shadowVariable] dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:143:15: note: Shadowed declaration dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:636:17: note: Shadow variable dmagnetic-0.37/src/libdmagnetic/vm68k/vm68k.c:40:42: style: Parameter 'pVM68k' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_appleii.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/loader_appleii.c:240:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/loader_appleii.c:381:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/loader_appleii.c:582:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gamename [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/loader_appleii.c:727:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/loader_archimedes.c:269:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/loader_archimedes.c:440:50: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/loader/loader_archimedes.c:439:9: note: Assuming allocation function fails dmagnetic-0.37/src/loader/loader_archimedes.c:439:9: note: Assignment 'f=fopen(filename,"rb")', assigned value is 0 dmagnetic-0.37/src/loader/loader_archimedes.c:440:50: note: Null pointer dereference dmagnetic-0.37/src/loader/loader_archimedes.c:441:9: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] dmagnetic-0.37/src/loader/loader_archimedes.c:439:9: note: Assuming allocation function fails dmagnetic-0.37/src/loader/loader_archimedes.c:439:9: note: Assignment 'f=fopen(filename,"rb")', assigned value is 0 dmagnetic-0.37/src/loader/loader_archimedes.c:441:9: note: Null pointer dereference dmagnetic-0.37/src/loader/loader_archimedes.c:156:102: style: Parameter 'dirname' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_archimedes.c:158:6: style: Variable 'dirsize' can be declared as const array [constVariable] dmagnetic-0.37/src/loader/loader_archimedes.c:348:32: style: Parameter 'lengths' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_archimedes.c:395:44: style: Parameter 'dskimg' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_archimedes.c:396:19: style: Parameter 'offsets' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_archimedes.c:396:32: style: Parameter 'lengths' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_archimedes.c:423:29: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_appleii.c:113:12: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] dmagnetic-0.37/src/loader/loader_appleii.c:113:10: style: Unsigned expression 'x' can't be negative so it is unnecessary to test it. [unsignedPositive] dmagnetic-0.37/src/loader/loader_appleii.c:629:7: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_appleii.c:566:6: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_appleii.c:629:7: note: Shadow variable dmagnetic-0.37/src/loader/loader_appleii.c:838:7: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_appleii.c:695:6: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_appleii.c:838:7: note: Shadow variable dmagnetic-0.37/src/loader/loader_appleii.c:159:75: style: Parameter 'wozbuf' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_appleii.c:225:50: style: Parameter 'pAddrBuf' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_appleii.c:245:50: style: Parameter 'pTrackBuf' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_appleii.c:361:89: style: Parameter 'pDskOffs' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_appleii.c:487:84: style: Parameter 'pDskBuf' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_appleii.c:487:109: style: Parameter 'pDskOffs' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_appleii.c:687:26: style: Parameter 'appleiiname' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_common.c:124:2: error: There is an unknown macro here somewhere. Configuration is required. If WRITE_INT32BE is a macro then please configure it. [unknownMacro] dmagnetic-0.37/src/loader/loader_d64.c:520:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/loader_atarixl.c:351:20: style:inconclusive: Function 'loader_atarixl' argument 3 names different: declaration 'magsize' definition 'magbufsize'. [funcArgNamesDifferent] dmagnetic-0.37/src/loader/loader_atarixl.h:32:21: note: Function 'loader_atarixl' argument 3 names different: declaration 'magsize' definition 'magbufsize'. dmagnetic-0.37/src/loader/loader_atarixl.c:351:20: note: Function 'loader_atarixl' argument 3 names different: declaration 'magsize' definition 'magbufsize'. dmagnetic-0.37/src/loader/loader_atarixl.c:352:20: style:inconclusive: Function 'loader_atarixl' argument 5 names different: declaration 'gfxsize' definition 'gfxbufsize'. [funcArgNamesDifferent] dmagnetic-0.37/src/loader/loader_atarixl.h:33:21: note: Function 'loader_atarixl' argument 5 names different: declaration 'gfxsize' definition 'gfxbufsize'. dmagnetic-0.37/src/loader/loader_atarixl.c:352:20: note: Function 'loader_atarixl' argument 5 names different: declaration 'gfxsize' definition 'gfxbufsize'. dmagnetic-0.37/src/loader/loader_atarixl.c:432:7: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_atarixl.c:362:6: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_atarixl.c:432:7: note: Shadow variable dmagnetic-0.37/src/loader/loader_atarixl.c:361:8: style: Variable 'diskfile2' can be declared as pointer to const [constVariablePointer] dmagnetic-0.37/src/loader/loader_d64.c:653:18: style: The statement 'if (side!=entries[i].side) side=entries[i].side' is logically equivalent to 'side=entries[i].side'. [duplicateConditionalAssign] dmagnetic-0.37/src/loader/loader_d64.c:655:10: note: Assignment 'side=entries[i].side' dmagnetic-0.37/src/loader/loader_d64.c:653:18: note: Condition 'side!=entries[i].side' is redundant dmagnetic-0.37/src/loader/loader_d64.c:599:8: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_d64.c:501:6: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_d64.c:599:8: note: Shadow variable dmagnetic-0.37/src/loader/loader_d64.c:615:8: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_d64.c:501:6: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_d64.c:615:8: note: Shadow variable dmagnetic-0.37/src/loader/loader_d64.c:140:42: style: Parameter 'diskram' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_d64.c:170:44: style: Parameter 'd64image' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_d64.c:215:43: style: Parameter 'd64image' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_msdos.c:219:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:509:24: style: Condition 'branch>max_stipple' is always true [knownConditionTrueFalse] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:505:17: note: Assuming that condition 'branch==max_stipple' is not redundant dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:509:24: note: Condition 'branch>max_stipple' is always true dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:672:12: style: Condition 'offset==-1' is always true [knownConditionTrueFalse] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:670:10: note: Assignment 'offset=-1', assigned value is -1 dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:672:12: note: Condition 'offset==-1' is always true dmagnetic-0.37/src/loader/loader_dsk.c:389:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:939:10: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:848:6: note: Shadowed declaration dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:939:10: note: Shadow variable dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:1015:7: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:848:6: note: Shadowed declaration dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:1015:7: note: Shadow variable dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:181:68: style: Parameter 'picname' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:535:17: style: Variable 'halftonelut' can be declared as const array [constVariable] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:594:68: style: Parameter 'picname' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/libdmagnetic/linea/gfxloader.c:904:18: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] dmagnetic-0.37/src/loader/loader_msdos.c:314:8: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_msdos.c:188:6: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_msdos.c:314:8: note: Shadow variable dmagnetic-0.37/src/loader/loader_msdos.c:173:24: style: Parameter 'msdosdir' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/maggfxloader.c:98:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/loader_mw.c:207:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/loader_mw.c:368:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmagnetic-0.37/src/loader/maggfxloader.c:46:27: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:406:35: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:405:41: note: outer condition: pLineA->textbuf_writeidx<4096-1 dmagnetic-0.37/src/libdmagnetic/linea/linea.c:406:35: note: identical inner condition: pLineA->textbuf_writeidx<4096-1 dmagnetic-0.37/src/libdmagnetic/linea/linea.c:448:9: style: Variable 'string' can be declared as const array [constVariable] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:476:34: style: Parameter 'pLineA' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:570:10: style: Variable 'pLineA' can be declared as pointer to const [constVariablePointer] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:805:19: style: Variable 'dictptr' can be declared as pointer to const [constVariablePointer] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:1167:19: style: Variable 'dictptr' can be declared as pointer to const [constVariablePointer] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:1168:19: style: Variable 'inputptr' can be declared as pointer to const [constVariablePointer] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:1265:21: style: Variable 'inputptr' can be declared as pointer to const [constVariablePointer] dmagnetic-0.37/src/libdmagnetic/linea/linea.c:1267:21: style: Variable 'dictptr' can be declared as pointer to const [constVariablePointer] dmagnetic-0.37/src/loader/loader_mw.c:246:7: style: Local variable 'i' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_mw.c:143:6: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_mw.c:246:7: note: Shadow variable dmagnetic-0.37/src/loader/loader_mw.c:246:9: style: Local variable 'j' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_mw.c:144:6: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_mw.c:246:9: note: Shadow variable dmagnetic-0.37/src/loader/loader_mw.c:40:38: style: Parameter 'two_rsc' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_mw.c:96:47: style: Parameter 'sizes' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_dsk.c:537:10: style: Local variable 'l' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_dsk.c:376:8: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_dsk.c:537:10: note: Shadow variable dmagnetic-0.37/src/loader/loader_dsk.c:610:11: style: Local variable 'l' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_dsk.c:376:8: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_dsk.c:610:11: note: Shadow variable dmagnetic-0.37/src/loader/loader_dsk.c:661:12: style: Local variable 'm' shadows outer variable [shadowVariable] dmagnetic-0.37/src/loader/loader_dsk.c:644:11: note: Shadowed declaration dmagnetic-0.37/src/loader/loader_dsk.c:661:12: note: Shadow variable dmagnetic-0.37/src/loader/loader_dsk.c:145:40: style: Parameter 'inputbuf' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_dsk.c:145:96: style: Parameter 'pDirEntries' can be declared as pointer to const [constParameterPointer] dmagnetic-0.37/src/loader/loader_dsk.c:612:18: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] diff: DONE