2025-07-12 08:30 ftp://ftp.de.debian.org/debian/pool/main/x/xstarfish/xstarfish_1.1+ds.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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 -j2 platform: Linux-6.12.33+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.17.0 head-info: 8244dfa (2025-07-11 19:55:56 +0200) count: 79 78 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: starfish-1.1/portable/generators/branchfrac-gen.c:87:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pi [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/branchfrac-gen.c:243:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pi [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/branchfrac-gen.c:162:56: style: Parameter 'ray' can be declared as pointer to const [constParameterPointer] starfish-1.1/portable/generators/branchfrac-gen.c:215:6: style: Unused variable: branch [unusedVariable] starfish-1.1/portable/generators.c:164:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CoswaveInit [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators.c:282:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators.c:303:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIN_CHANVAL [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/bubble-gen.c:123:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pi [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/bubble-gen.c:226:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pi [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/bubble-gen.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] starfish-1.1/portable/generators/bubble-gen.c:165:10: style: Variable 'current' is reassigned a value before the old one has been used. [redundantAssignment] starfish-1.1/portable/generators/bubble-gen.c:164:10: note: current is assigned starfish-1.1/portable/generators/bubble-gen.c:165:10: note: current is overwritten starfish-1.1/portable/generators/bubble-gen.c:247:62: style: Parameter 'bub' can be declared as pointer to const [constParameterPointer] starfish-1.1/portable/generators/coswave-gen.c:100:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scaleToFit [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/coswave-gen.c:137:9: style: Unused variable: rawcos [unusedVariable] starfish-1.1/portable/generators.c:214:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] starfish-1.1/portable/generators.c:341:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] starfish-1.1/portable/generators.c:261:24: style:inconclusive: Function 'MakeLayer' argument 1 names different: declaration 'ctr' definition 'genctr'. [funcArgNamesDifferent] starfish-1.1/portable/generators.h:64:24: note: Function 'MakeLayer' argument 1 names different: declaration 'ctr' definition 'genctr'. starfish-1.1/portable/generators.c:261:24: note: Function 'MakeLayer' argument 1 names different: declaration 'ctr' definition 'genctr'. starfish-1.1/portable/generators.c:345:42: style:inconclusive: Function 'GeneratePointFunction' argument 1 names different: declaration 'h' definition 'hmax'. [funcArgNamesDifferent] starfish-1.1/portable/generators.c:133:42: note: Function 'GeneratePointFunction' argument 1 names different: declaration 'h' definition 'hmax'. starfish-1.1/portable/generators.c:345:42: note: Function 'GeneratePointFunction' argument 1 names different: declaration 'h' definition 'hmax'. starfish-1.1/portable/generators.c:345:52: style:inconclusive: Function 'GeneratePointFunction' argument 2 names different: declaration 'v' definition 'vmax'. [funcArgNamesDifferent] starfish-1.1/portable/generators.c:133:49: note: Function 'GeneratePointFunction' argument 2 names different: declaration 'v' definition 'vmax'. starfish-1.1/portable/generators.c:345:52: note: Function 'GeneratePointFunction' argument 2 names different: declaration 'v' definition 'vmax'. starfish-1.1/portable/generators.c:345:67: style:inconclusive: Function 'GeneratePointFunction' argument 3 names different: declaration 'gen' definition 'it'. [funcArgNamesDifferent] starfish-1.1/portable/generators.c:133:61: note: Function 'GeneratePointFunction' argument 3 names different: declaration 'gen' definition 'it'. starfish-1.1/portable/generators.c:345:67: note: Function 'GeneratePointFunction' argument 3 names different: declaration 'gen' definition 'it'. starfish-1.1/portable/generators.c:378:40: style:inconclusive: Function 'GetAntiAliasedPoint' argument 1 names different: declaration 'hpos' definition 'fhpos'. [funcArgNamesDifferent] starfish-1.1/portable/generators.c:135:40: note: Function 'GetAntiAliasedPoint' argument 1 names different: declaration 'hpos' definition 'fhpos'. starfish-1.1/portable/generators.c:378:40: note: Function 'GetAntiAliasedPoint' argument 1 names different: declaration 'hpos' definition 'fhpos'. starfish-1.1/portable/generators.c:378:53: style:inconclusive: Function 'GetAntiAliasedPoint' argument 2 names different: declaration 'vpos' definition 'fvpos'. [funcArgNamesDifferent] starfish-1.1/portable/generators.c:135:52: note: Function 'GetAntiAliasedPoint' argument 2 names different: declaration 'vpos' definition 'fvpos'. starfish-1.1/portable/generators.c:378:53: note: Function 'GetAntiAliasedPoint' argument 2 names different: declaration 'vpos' definition 'fvpos'. starfish-1.1/portable/generators.c:402:36: style:inconclusive: Function 'GetWrappedPoint' argument 1 names different: declaration 'hpos' definition 'fhpos'. [funcArgNamesDifferent] starfish-1.1/portable/generators.c:134:36: note: Function 'GetWrappedPoint' argument 1 names different: declaration 'hpos' definition 'fhpos'. starfish-1.1/portable/generators.c:402:36: note: Function 'GetWrappedPoint' argument 1 names different: declaration 'hpos' definition 'fhpos'. starfish-1.1/portable/generators.c:402:49: style:inconclusive: Function 'GetWrappedPoint' argument 2 names different: declaration 'vpos' definition 'fvpos'. [funcArgNamesDifferent] starfish-1.1/portable/generators.c:134:48: note: Function 'GetWrappedPoint' argument 2 names different: declaration 'vpos' definition 'fvpos'. starfish-1.1/portable/generators.c:402:49: note: Function 'GetWrappedPoint' argument 2 names different: declaration 'vpos' definition 'fvpos'. starfish-1.1/portable/generators.c:317:38: style: Unused variable: pixelval [unusedVariable] starfish-1.1/portable/generators/flatwave-gen.c:113:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/flatwave-gen.c:130:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pi [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/flatwave-gen.c:142:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scaleToFit [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/flatwave-gen.c:260:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pi [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/flatwave-gen.c:170:8: style: Unused variable: hypangle [unusedVariable] starfish-1.1/portable/generators/flatwave-gen.c:170:18: style: Unused variable: hypotenuse [unusedVariable] starfish-1.1/portable/generators/flatwave-gen.c:171:8: style: Unused variable: distance [unusedVariable] starfish-1.1/portable/generators/flatwave-gen.c:171:18: style: Unused variable: transverse [unusedVariable] starfish-1.1/portable/generators/ramp-gen.c:35:24: style: Parameter 'refcon' can be declared as pointer to const [constParameterPointer] starfish-1.1/portable/generators/ramp-gen.c:40:39: style: Parameter 'refcon' can be declared as pointer to const [constParameterPointer] starfish-1.1/portable/generators/ramp-gen.c:46:8: style: Unused variable: tempv [unusedVariable] starfish-1.1/portable/generators/ramp-gen.c:47:8: style: Unused variable: hpower [unusedVariable] starfish-1.1/portable/generators/ramp-gen.c:47:16: style: Unused variable: vpower [unusedVariable] starfish-1.1/portable/generators/spinflake-gen.c:122:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/spinflake-gen.c:166:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pi [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/spinflake-gen.c:241:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pi [valueFlowBailoutIncompleteVar] starfish-1.1/portable/generators/spinflake-gen.c:321:42: style:inconclusive: Function 'calcwave' argument 2 names different: declaration 'origindist' definition 'dist'. [funcArgNamesDifferent] starfish-1.1/portable/generators/spinflake-gen.c:110:42: note: Function 'calcwave' argument 2 names different: declaration 'origindist' definition 'dist'. starfish-1.1/portable/generators/spinflake-gen.c:321:42: note: Function 'calcwave' argument 2 names different: declaration 'origindist' definition 'dist'. starfish-1.1/portable/generators/spinflake-gen.c:225:43: style: Parameter 'glb' can be declared as pointer to const [constParameterPointer] starfish-1.1/portable/generators/spinflake-gen.c:351:53: style: Parameter 'it' can be declared as pointer to const [constParameterPointer] starfish-1.1/portable/generators/spinflake-gen.c:222:9: warning: Uninitialized variable: out [uninitvar] starfish-1.1/portable/generators/spinflake-gen.c:206:5: note: Assuming condition is false starfish-1.1/portable/generators/spinflake-gen.c:222:9: note: Uninitialized variable: out starfish-1.1/portable/generators/spinflake-gen.c:259:44: style: Unused variable: totalweight [unusedVariable] starfish-1.1/portable/generators/rangefrac-gen.c:79:6: style: Unused variable: tempblinder [unusedVariable] starfish-1.1/portable/genutils.c:34:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] starfish-1.1/portable/genutils.c:68:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] starfish-1.1/portable/pixels/greymap.c:336:92: style:inconclusive: Function 'SetGreyRasterLine' argument 5 names different: declaration 'dest' definition 'src'. [funcArgNamesDifferent] starfish-1.1/portable/pixels/greymap.h:62:92: note: Function 'SetGreyRasterLine' argument 5 names different: declaration 'dest' definition 'src'. starfish-1.1/portable/pixels/greymap.c:336:92: note: Function 'SetGreyRasterLine' argument 5 names different: declaration 'dest' definition 'src'. starfish-1.1/portable/pixels/bufferxform.c:88:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] starfish-1.1/portable/pixels/bufferxform.c:93:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] starfish-1.1/portable/pixels/bufferxform.c:185:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] starfish-1.1/portable/pixels/bufferxform.c:190:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] starfish-1.1/portable/pixels/bufferxform.c:335:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] starfish-1.1/portable/pixels/bufferxform.c:318:9: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] starfish-1.1/portable/pixels/bufferxform.c:304:9: note: err is assigned starfish-1.1/portable/pixels/bufferxform.c:318:9: note: err is overwritten starfish-1.1/portable/pixels/bufferxform.c:320:9: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] starfish-1.1/portable/pixels/bufferxform.c:318:9: note: err is assigned starfish-1.1/portable/pixels/bufferxform.c:320:9: note: err is overwritten starfish-1.1/portable/pixels/bufferxform.c:223:13: style: Variable 'toppixel' can be declared as pointer to const [constVariablePointer] starfish-1.1/portable/pixels/bufferxform.c:224:13: style: Variable 'botpixel' can be declared as pointer to const [constVariablePointer] starfish-1.1/portable/starfish-engine.c:132:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_CHANVAL [valueFlowBailoutIncompleteVar] starfish-1.1/portable/starfish-engine.c:269:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_CHANVAL [valueFlowBailoutIncompleteVar] starfish-1.1/portable/starfish-engine.c:448:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] starfish-1.1/portable/pixels/pixmap.c:295:71: style:inconclusive: Function 'SetPixBufPixel' argument 4 names different: declaration 'dest' definition 'src'. [funcArgNamesDifferent] starfish-1.1/portable/pixels/pixmap.h:68:71: note: Function 'SetPixBufPixel' argument 4 names different: declaration 'dest' definition 'src'. starfish-1.1/portable/pixels/pixmap.c:295:71: note: Function 'SetPixBufPixel' argument 4 names different: declaration 'dest' definition 'src'. starfish-1.1/portable/pixels/pixmap.c:385:86: style:inconclusive: Function 'SetRasterLine' argument 5 names different: declaration 'dest' definition 'src'. [funcArgNamesDifferent] starfish-1.1/portable/pixels/pixmap.h:74:86: note: Function 'SetRasterLine' argument 5 names different: declaration 'dest' definition 'src'. starfish-1.1/portable/pixels/pixmap.c:385:86: note: Function 'SetRasterLine' argument 5 names different: declaration 'dest' definition 'src'. starfish-1.1/portable/starfish-engine.c:342:3: warning: Either the condition 'out' is redundant or there is possible null pointer dereference: out. [nullPointerRedundantCheck] starfish-1.1/portable/starfish-engine.c:251:16: note: Assuming that condition 'out' is not redundant starfish-1.1/portable/starfish-engine.c:342:3: note: Null pointer dereference starfish-1.1/portable/starfish-engine.c:375:21: style:inconclusive: Function 'Starfish' argument 1 names different: declaration 'hsize' definition 'horz'. [funcArgNamesDifferent] starfish-1.1/portable/starfish-engine.h:48:21: note: Function 'Starfish' argument 1 names different: declaration 'hsize' definition 'horz'. starfish-1.1/portable/starfish-engine.c:375:21: note: Function 'Starfish' argument 1 names different: declaration 'hsize' definition 'horz'. starfish-1.1/portable/starfish-engine.c:375:31: style:inconclusive: Function 'Starfish' argument 2 names different: declaration 'vsize' definition 'vert'. [funcArgNamesDifferent] starfish-1.1/portable/starfish-engine.h:48:32: note: Function 'Starfish' argument 2 names different: declaration 'vsize' definition 'vert'. starfish-1.1/portable/starfish-engine.c:375:31: note: Function 'Starfish' argument 2 names different: declaration 'vsize' definition 'vert'. starfish-1.1/portable/starfish-engine.c:386:19: style: Variable 'templayer' is assigned a value that is never used. [unreadVariable] starfish-1.1/portable/starfish-engine.c:386:9: style: Variable 'templayer' is assigned a value that is never used. [unreadVariable] starfish-1.1/unix/makepng.c:46:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] starfish-1.1/unix/makepng.c:128:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable png_byte [valueFlowBailoutIncompleteVar] starfish-1.1/unix/makepng.c:63:4: error: Resource leak: theFile [resourceLeak] starfish-1.1/unix/makepng.c:75:4: error: Resource leak: theFile [resourceLeak] starfish-1.1/unix/makepng.c:37:21: style: Unused variable: x [unusedVariable] starfish-1.1/unix/makepng.c:37:24: style: Unused variable: y [unusedVariable] starfish-1.1/unix/setdesktop.c:99:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable depth [valueFlowBailoutIncompleteVar] starfish-1.1/unix/setdesktop.c:133:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] starfish-1.1/unix/starfish.c:175:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] starfish-1.1/unix/starfish.c:229:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diff: head starfish-1.1/portable/starfish-engine.c:386:9: style: Variable 'templayer' is assigned a value that is never used. [unreadVariable] DONE