2025-07-03 18:27 ftp://ftp.de.debian.org/debian/pool/main/i/instead/instead_3.5.2+dfsg.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=sdl --library=lua --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: a214e76 (2025-07-03 20:23:32 +0200) count: 398 401 elapsed-time: 5.3 5.2 head-timing-info: old-timing-info: head results: instead-3.5.2+dfsg/src/SDL_gif.c:177:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PIXELFORMAT_ARGB8888 [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/SDL_gif.c:345:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_TRUE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/SDL_gif.c:681:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/SDL_gif.c:738:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_TRUE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/config.c:120:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/config.c:135:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:314:19: style: Variable 'srcfmt' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:315:19: style: Variable 'dstfmt' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:356:56: style: Parameter 'srcrect' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:356:95: style: Parameter 'dstrect' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:403:51: style: Parameter 'srcrect' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:403:90: style: Parameter 'dstrect' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:469:13: style: Variable 'clip' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:320:3: style: Variable 'pixel' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:425:8: style: Variable 'dr.w' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/SDL_gfxBlitFunc.c:426:8: style: Variable 'dr.h' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/instead/cache.c:148:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/cache.c:261:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/input.c:50:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_ENABLE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/input.c:62:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_USEREVENT [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/input.c:221:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_GAMECONTROLLER [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/input.c:248:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_GAMECONTROLLER [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/input.c:256:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_MOUSEWHEEL [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/input.c:281:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_CONTROLLER_AXIS_RIGHTX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/input.c:308:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_MOUSEMOTION [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/input.c:493:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PEEKEVENT [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/cache.c:236:14: style: Variable 'cc' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead/cache.c:248:14: style: Variable 'cc' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1140:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1442:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1594:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/input.c:460:29: style:inconclusive: Function 'input' argument 1 names different: declaration 'ev' definition 'inp'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/input.h:55:29: note: Function 'input' argument 1 names different: declaration 'ev' definition 'inp'. instead-3.5.2+dfsg/src/input.c:460:29: note: Function 'input' argument 1 names different: declaration 'ev' definition 'inp'. instead-3.5.2+dfsg/src/input.c:181:49: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/input.c:301:43: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/input.c:436:14: style: Variable 'f' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead/idf.c:63:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/idf.c:263:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/idf.c:419:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/SDL_gif.c:684:9: warning: If resource allocation fails, then there is a possible null pointer dereference: image [nullPointerOutOfResources] instead-3.5.2+dfsg/src/SDL_gif.c:681:13: note: Assuming allocation function fails instead-3.5.2+dfsg/src/SDL_gif.c:681:13: note: Assignment 'image=SDL_CreateRGBSurface(SDL_SWSURFACE,len,height,8,0,0,0,0)', assigned value is 0 instead-3.5.2+dfsg/src/SDL_gif.c:684:9: note: Null pointer dereference instead-3.5.2+dfsg/src/SDL_gif.c:688:19: warning: If resource allocation fails, then there is a possible null pointer dereference: image [nullPointerOutOfResources] instead-3.5.2+dfsg/src/SDL_gif.c:681:13: note: Assuming allocation function fails instead-3.5.2+dfsg/src/SDL_gif.c:681:13: note: Assignment 'image=SDL_CreateRGBSurface(SDL_SWSURFACE,len,height,8,0,0,0,0)', assigned value is 0 instead-3.5.2+dfsg/src/SDL_gif.c:688:19: note: Null pointer dereference instead-3.5.2+dfsg/src/SDL_gif.c:688:48: warning: If resource allocation fails, then there is a possible null pointer dereference: image [nullPointerOutOfResources] instead-3.5.2+dfsg/src/SDL_gif.c:681:13: note: Assuming allocation function fails instead-3.5.2+dfsg/src/SDL_gif.c:681:13: note: Assignment 'image=SDL_CreateRGBSurface(SDL_SWSURFACE,len,height,8,0,0,0,0)', assigned value is 0 instead-3.5.2+dfsg/src/SDL_gif.c:688:48: note: Null pointer dereference instead-3.5.2+dfsg/src/SDL_gif.c:446:9: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] instead-3.5.2+dfsg/src/SDL_gif.c:396:61: style:inconclusive: Function 'ReadColorMap' argument 4 names different: declaration 'flag' definition 'gray'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/SDL_gif.c:158:60: note: Function 'ReadColorMap' argument 4 names different: declaration 'flag' definition 'gray'. instead-3.5.2+dfsg/src/SDL_gif.c:396:61: note: Function 'ReadColorMap' argument 4 names different: declaration 'flag' definition 'gray'. instead-3.5.2+dfsg/src/SDL_gif.c:402:10: style: Variable 'flag' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/SDL_gif.c:412:14: style: Variable 'flag' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/instead/lfs.c:27:17: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:89:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/game.c:659:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/game.c:722:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable val [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/game.c:1040:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/game.c:1688:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable val [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/game.c:2268:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:159:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:185:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_GLOBALSINDEX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:211:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_MULTRET [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:347:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable val [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:365:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable val [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:439:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_MULTRET [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:649:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:699:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_MULTRET [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:707:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_MULTRET [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:725:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:751:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:1075:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:1136:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:1221:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:1269:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_GLOBALSINDEX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/instead.c:1314:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/list.c:146:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/list.c:154:59: style:inconclusive: Function 'list_check_node' argument 1 names different: declaration 'n' definition 'node'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/instead/list.h:280:59: note: Function 'list_check_node' argument 1 names different: declaration 'n' definition 'node'. instead-3.5.2+dfsg/src/instead/list.c:154:59: note: Function 'list_check_node' argument 1 names different: declaration 'n' definition 'node'. instead-3.5.2+dfsg/src/instead/list.c:46:38: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/instead/idf.c:145:28: style:inconclusive: Function 'idf_init' argument 1 names different: declaration 'path' definition 'fname'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/instead/idf.h:33:35: note: Function 'idf_init' argument 1 names different: declaration 'path' definition 'fname'. instead-3.5.2+dfsg/src/instead/idf.c:145:28: note: Function 'idf_init' argument 1 names different: declaration 'path' definition 'fname'. instead-3.5.2+dfsg/src/instead/idf.c:296:9: style: Local variable 'd' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/instead/idf.c:253:7: note: Shadowed declaration instead-3.5.2+dfsg/src/instead/idf.c:296:9: note: Shadow variable instead-3.5.2+dfsg/src/instead/idf.c:404:9: style: Local variable 'p' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/instead/idf.c:344:8: note: Shadowed declaration instead-3.5.2+dfsg/src/instead/idf.c:404:9: note: Shadow variable instead-3.5.2+dfsg/src/instead/idf.c:416:8: style: Local variable 'rc' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/instead/idf.c:342:6: note: Shadowed declaration instead-3.5.2+dfsg/src/instead/idf.c:416:8: note: Shadow variable instead-3.5.2+dfsg/src/instead/idf.c:149:8: style: Variable 'fp' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead/idf.c:254:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead/idf.c:367:15: style: Variable 'it' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead/idf.c:382:15: style: Variable 'it' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead/idf.c:449:10: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead/idf.c:581:10: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead/idf.c:644:10: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:319:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:365:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:392:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:468:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:499:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:506:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:515:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:528:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:543:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:586:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:604:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:627:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BLENDMODE_BLEND [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:639:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:662:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:689:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:721:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:734:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BLENDMODE_BLEND [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:747:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:764:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:803:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:830:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:838:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:860:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:901:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:911:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:921:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:931:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_ALPHA_OPAQUE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:946:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:992:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1024:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_ALPHA_OPAQUE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1163:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1223:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1250:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1270:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_ALPHA_OPAQUE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1284:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1304:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1323:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1339:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1362:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1476:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1510:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1603:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1668:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_Rect [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1716:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:1906:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2061:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_RENDERER_PRESENTVSYNC [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2255:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2291:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2326:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_RENDERER_ACCELERATED [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2432:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2454:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2501:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2543:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2627:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:2671:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TTF_STYLE_BOLD [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:4805:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TTF_STYLE_BOLD [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:5518:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lines [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:5582:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_ALPHA_OPAQUE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:5659:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:5684:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_HINT_RENDER_SCALE_QUALITY [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:5746:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:5758:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/snprintf.c:934:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable E2BIG [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead/tinymt32.h:83:26: error: Signed integer overflow for expression '-((int32_t)(y&1))'. [integerOverflow] instead-3.5.2+dfsg/src/instead/tinymt32.h:84:26: error: Signed integer overflow for expression '-((int32_t)(y&1))'. [integerOverflow] instead-3.5.2+dfsg/src/instead/tinymt32.h:99:11: error: Signed integer overflow for expression '-((int32_t)(t1&1))'. [integerOverflow] instead-3.5.2+dfsg/src/instead/util.c:612:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] instead-3.5.2+dfsg/src/instead/util.c:29:26: style:inconclusive: Function 'get_utf8' argument 1 names different: declaration 'p' definition 'sp'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/instead/util.h:31:33: note: Function 'get_utf8' argument 1 names different: declaration 'p' definition 'sp'. instead-3.5.2+dfsg/src/instead/util.c:29:26: note: Function 'get_utf8' argument 1 names different: declaration 'p' definition 'sp'. instead-3.5.2+dfsg/src/instead/util.c:503:34: style:inconclusive: Function 'is_absolute_path' argument 1 names different: declaration 'p' definition 'path'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/instead/util.h:45:41: note: Function 'is_absolute_path' argument 1 names different: declaration 'p' definition 'path'. instead-3.5.2+dfsg/src/instead/util.c:503:34: note: Function 'is_absolute_path' argument 1 names different: declaration 'p' definition 'path'. instead-3.5.2+dfsg/src/instead/instead.c:1389:34: style:inconclusive: Function 'instead_set_lang' argument 1 names different: declaration 'lang' definition 'opt_lang'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/instead/instead.h:92:42: note: Function 'instead_set_lang' argument 1 names different: declaration 'lang' definition 'opt_lang'. instead-3.5.2+dfsg/src/instead/instead.c:1389:34: note: Function 'instead_set_lang' argument 1 names different: declaration 'lang' definition 'opt_lang'. instead-3.5.2+dfsg/src/instead/instead.c:554:7: style: Local variable 'rc' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/instead/instead.c:544:6: note: Shadowed declaration instead-3.5.2+dfsg/src/instead/instead.c:554:7: note: Shadow variable instead-3.5.2+dfsg/src/instead/instead.c:259:23: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/instead/instead.c:276:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/instead/instead.c:384:52: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/instead/instead.c:618:17: style: Variable 'i' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/instead/instead.c:886:10: style: Variable 'len' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/instead/instead.c:928:8: style: Variable 'l' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/instead/instead.c:1308:17: style: Variable 'i' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/instead_paths.c:38:7: style: Local variable 'instead_path' shadows outer function [shadowFunction] instead-3.5.2+dfsg/src/instead/instead.h:103:14: note: Shadowed declaration instead-3.5.2+dfsg/src/instead_paths.c:38:7: note: Shadow variable instead-3.5.2+dfsg/src/instead/snprintf.c:953:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] instead-3.5.2+dfsg/src/instead/snprintf.c:1493:9: warning: Uninitialized variable: dst [uninitvar] instead-3.5.2+dfsg/src/instead/snprintf.c:1504:2: note: Calling function 'mymemcpy', 1st argument '&aq' value is instead-3.5.2+dfsg/src/instead/snprintf.c:1493:9: note: Uninitialized variable: dst instead-3.5.2+dfsg/src/instead/snprintf.c:1504:2: error: va_list 'aq' used before va_start() was called. [va_list_usedBeforeStarted] instead-3.5.2+dfsg/src/instead/snprintf.c:1505:35: error: va_list 'aq' used before va_start() was called. [va_list_usedBeforeStarted] instead-3.5.2+dfsg/src/instead_sound.c:95:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:113:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:123:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:135:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:170:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:190:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:231:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:321:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:465:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable val [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:632:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:712:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:736:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:764:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sound.c:796:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/main.c:192:12: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] instead-3.5.2+dfsg/src/instead_sound.c:379:22: style:inconclusive: Function 'sound_put' argument 1 names different: declaration 'sn' definition 's'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/game.h:150:29: note: Function 'sound_put' argument 1 names different: declaration 'sn' definition 's'. instead-3.5.2+dfsg/src/instead_sound.c:379:22: note: Function 'sound_put' argument 1 names different: declaration 'sn' definition 's'. instead-3.5.2+dfsg/src/instead_sound.c:627:6: style: Local variable 'channels' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/instead_sound.c:82:16: note: Shadowed declaration instead-3.5.2+dfsg/src/instead_sound.c:627:6: note: Shadow variable instead-3.5.2+dfsg/src/instead_sound.c:120:35: style: Parameter 'snd' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/instead_sound.c:390:10: style: Variable 'sn' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sound.c:398:10: style: Variable 'sn' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sound.c:412:37: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/instead_sound.c:689:40: style: Parameter 'L' can be declared as pointer to const. However it seems that 'luaB_free_sounds' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] instead-3.5.2+dfsg/src/instead_sound.c:784:26: note: You might need to cast the function pointer here instead-3.5.2+dfsg/src/instead_sound.c:689:40: note: Parameter 'L' can be declared as pointer to const instead-3.5.2+dfsg/src/instead_sprites.c:56:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sprites.c:2027:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sprites.c:2249:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sprites.c:2495:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sprites.c:2516:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sprites.c:2581:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/instead_sprites.c:2602:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/menu.c:494:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/menu.c:674:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/menu.c:1081:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:124:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:173:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_AUDIO [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:212:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_S16LSB [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:273:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:295:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_FALSE [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:367:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:376:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:404:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_CHANNELS [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:454:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_AUDIO [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/sound.c:196:42: style:inconclusive: Function 'snd_load_mem' argument 2 names different: declaration 'buf' definition 'data'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/sound.h:25:49: note: Function 'snd_load_mem' argument 2 names different: declaration 'buf' definition 'data'. instead-3.5.2+dfsg/src/sound.c:196:42: note: Function 'snd_load_mem' argument 2 names different: declaration 'buf' definition 'data'. instead-3.5.2+dfsg/src/sound.c:261:25: style:inconclusive: Function 'snd_free_wav' argument 1 names different: declaration 'chunk' definition 'w'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/sound.h:17:32: note: Function 'snd_free_wav' argument 1 names different: declaration 'chunk' definition 'w'. instead-3.5.2+dfsg/src/sound.c:261:25: note: Function 'snd_free_wav' argument 1 names different: declaration 'chunk' definition 'w'. instead-3.5.2+dfsg/src/sound.c:308:24: style:inconclusive: Function 'snd_play_mus' argument 1 names different: declaration 'music' definition 'fname'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/sound.h:26:31: note: Function 'snd_play_mus' argument 1 names different: declaration 'music' definition 'fname'. instead-3.5.2+dfsg/src/sound.c:308:24: note: Function 'snd_play_mus' argument 1 names different: declaration 'music' definition 'fname'. instead-3.5.2+dfsg/src/sound.c:286:8: style: Local variable 'mus' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/sound.c:42:14: note: Shadowed declaration instead-3.5.2+dfsg/src/sound.c:286:8: note: Shadow variable instead-3.5.2+dfsg/src/sound.c:308:24: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/SDL_rotozoom.c:881:32: style: Condition 'src->format->BitsPerPixel==16' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/SDL_rotozoom.c:880:32: note: Assuming that condition 'src->format->BitsPerPixel==8' is not redundant instead-3.5.2+dfsg/src/SDL_rotozoom.c:881:32: note: Condition 'src->format->BitsPerPixel==16' is always false instead-3.5.2+dfsg/src/SDL_rotozoom.c:882:32: style: Condition 'src->format->BitsPerPixel==24' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/SDL_rotozoom.c:880:32: note: Assuming that condition 'src->format->BitsPerPixel==8' is not redundant instead-3.5.2+dfsg/src/SDL_rotozoom.c:882:32: note: Condition 'src->format->BitsPerPixel==24' is always false instead-3.5.2+dfsg/src/SDL_rotozoom.c:1663:14: style: Condition 'result!=0' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1662:30: note: Calling function '_shrinkSurfaceRGBA' returns 0 instead-3.5.2+dfsg/src/SDL_rotozoom.c:1662:30: note: Assignment 'result=_shrinkSurfaceRGBA(rz_src,rz_dst,factorx,factory)', assigned value is 0 instead-3.5.2+dfsg/src/SDL_rotozoom.c:1663:14: note: Condition 'result!=0' is always false instead-3.5.2+dfsg/src/SDL_rotozoom.c:1679:13: style: Condition 'result!=0' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1678:27: note: Calling function '_shrinkSurfaceY' returns 0 instead-3.5.2+dfsg/src/SDL_rotozoom.c:1678:27: note: Assignment 'result=_shrinkSurfaceY(rz_src,rz_dst,factorx,factory)', assigned value is 0 instead-3.5.2+dfsg/src/SDL_rotozoom.c:1679:13: note: Condition 'result!=0' is always false instead-3.5.2+dfsg/src/SDL_rotozoom.c:125:22: warning: Either the condition 'rz_dst==NULL' is redundant or there is possible null pointer dereference: dst. [nullPointerRedundantCheck] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1663:29: note: Assuming that condition 'rz_dst==NULL' is not redundant instead-3.5.2+dfsg/src/SDL_rotozoom.c:1662:39: note: Calling function '_shrinkSurfaceRGBA', 2nd argument 'rz_dst' value is 0 instead-3.5.2+dfsg/src/SDL_rotozoom.c:125:22: note: Null pointer dereference instead-3.5.2+dfsg/src/SDL_rotozoom.c:126:9: warning: Either the condition 'rz_dst==NULL' is redundant or there is possible null pointer dereference: dst. [nullPointerRedundantCheck] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1663:29: note: Assuming that condition 'rz_dst==NULL' is not redundant instead-3.5.2+dfsg/src/SDL_rotozoom.c:1662:39: note: Calling function '_shrinkSurfaceRGBA', 2nd argument 'rz_dst' value is 0 instead-3.5.2+dfsg/src/SDL_rotozoom.c:126:9: note: Null pointer dereference instead-3.5.2+dfsg/src/SDL_rotozoom.c:126:22: warning: Either the condition 'rz_dst==NULL' is redundant or there is possible null pointer dereference: dst. [nullPointerRedundantCheck] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1663:29: note: Assuming that condition 'rz_dst==NULL' is not redundant instead-3.5.2+dfsg/src/SDL_rotozoom.c:1662:39: note: Calling function '_shrinkSurfaceRGBA', 2nd argument 'rz_dst' value is 0 instead-3.5.2+dfsg/src/SDL_rotozoom.c:126:22: note: Null pointer dereference instead-3.5.2+dfsg/src/SDL_rotozoom.c:128:18: warning: Either the condition 'rz_dst==NULL' is redundant or there is possible null pointer dereference: dst. [nullPointerRedundantCheck] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1663:29: note: Assuming that condition 'rz_dst==NULL' is not redundant instead-3.5.2+dfsg/src/SDL_rotozoom.c:1662:39: note: Calling function '_shrinkSurfaceRGBA', 2nd argument 'rz_dst' value is 0 instead-3.5.2+dfsg/src/SDL_rotozoom.c:128:18: note: Null pointer dereference instead-3.5.2+dfsg/src/SDL_rotozoom.c:1653:2: warning: Either the condition 'rz_dst==NULL' is redundant or there is possible null pointer dereference: rz_dst. [nullPointerRedundantCheck] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1663:29: note: Assuming that condition 'rz_dst==NULL' is not redundant instead-3.5.2+dfsg/src/SDL_rotozoom.c:1653:2: note: Null pointer dereference instead-3.5.2+dfsg/src/SDL_rotozoom.c:291:57: style: Variable 'salast' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/SDL_rotozoom.c:300:14: style: Variable 'c00' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/SDL_rotozoom.c:300:20: style: Variable 'c01' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/SDL_rotozoom.c:300:32: style: Variable 'c11' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/SDL_rotozoom.c:618:30: warning: Expression 'flipx?-1:1' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] instead-3.5.2+dfsg/src/SDL_rotozoom.c:630:30: warning: Expression 'flipy?-1:1' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] instead-3.5.2+dfsg/src/SDL_rotozoom.c:599:5: style: Variable 'sp' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/tiny/main.c:33:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/tiny/metaparser.c:22:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/unix.c:71:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/unix.c:268:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/unix.c:303:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/unix.c:332:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/unix.c:254:7: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] instead-3.5.2+dfsg/src/unix.c:309:7: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] instead-3.5.2+dfsg/src/unix.c:317:26: style:inconclusive: Function 'game_save_path' argument 1 names different: declaration 'rc' definition 'cr'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/game.h:128:34: note: Function 'game_save_path' argument 1 names different: declaration 'rc' definition 'cr'. instead-3.5.2+dfsg/src/unix.c:317:26: note: Function 'game_save_path' argument 1 names different: declaration 'rc' definition 'cr'. instead-3.5.2+dfsg/src/unix.c:357:22: style:inconclusive: Function 'sdl_path' argument 1 names different: declaration 'path' definition 'p'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/utils.h:61:29: note: Function 'sdl_path' argument 1 names different: declaration 'path' definition 'p'. instead-3.5.2+dfsg/src/unix.c:357:22: note: Function 'sdl_path' argument 1 names different: declaration 'path' definition 'p'. instead-3.5.2+dfsg/src/unix.c:243:17: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/unix.c:263:8: style: Variable 'app' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/unix.c:281:8: style: Variable 'app' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/unix.c:290:8: style: Variable 'app' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/unix.c:299:8: style: Variable 'app' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/unix.c:300:17: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/unix.c:319:8: style: Variable 'app' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/themes.c:929:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/themes.c:946:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/themes.c:1013:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/themes.c:1037:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/themes.c:1184:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/utils.c:154:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/utils.c:401:89: style:inconclusive: Function 'lookup_lang_tag' argument 4 names different: declaration 'lang' definition 'opt_lang'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/utils.h:46:96: note: Function 'lookup_lang_tag' argument 4 names different: declaration 'lang' definition 'opt_lang'. instead-3.5.2+dfsg/src/utils.c:401:89: note: Function 'lookup_lang_tag' argument 4 names different: declaration 'lang' definition 'opt_lang'. instead-3.5.2+dfsg/src/utils.c:412:104: style:inconclusive: Function 'lookup_lang_tag_idf' argument 5 names different: declaration 'lang' definition 'opt_lang'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/utils.h:47:111: note: Function 'lookup_lang_tag_idf' argument 5 names different: declaration 'lang' definition 'opt_lang'. instead-3.5.2+dfsg/src/utils.c:412:104: note: Function 'lookup_lang_tag_idf' argument 5 names different: declaration 'lang' definition 'opt_lang'. instead-3.5.2+dfsg/src/utils.c:468:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/utils.c:495:17: style: Variable 'data' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/utils.c:498:14: style: Variable 'map' can be declared as const array [constVariable] instead-3.5.2+dfsg/src/utils.c:510:17: style: Variable 'data' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:3951:8: style: Array index 'cjk' is used before limits check. [arrayIndexThenCheck] instead-3.5.2+dfsg/src/graphics.c:789:6: style: The if condition is the same as the previous if condition [duplicateCondition] instead-3.5.2+dfsg/src/graphics.c:786:6: note: First condition instead-3.5.2+dfsg/src/graphics.c:789:6: note: Second condition instead-3.5.2+dfsg/src/graphics.c:565:24: style: Condition 's' is always true [knownConditionTrueFalse] instead-3.5.2+dfsg/src/graphics.c:1521:10: style: Condition 'dx>0' is always true [knownConditionTrueFalse] instead-3.5.2+dfsg/src/graphics.c:1517:8: note: Assuming that condition 'x0' is always true instead-3.5.2+dfsg/src/graphics.c:1525:10: style: Condition 'dy>0' is always true [knownConditionTrueFalse] instead-3.5.2+dfsg/src/graphics.c:1517:21: note: Assuming that condition 'y0' is always true instead-3.5.2+dfsg/src/graphics.c:1622:6: style: Condition 'modes' is always true [knownConditionTrueFalse] instead-3.5.2+dfsg/src/graphics.c:5111:8: style: Condition '!ptr' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/graphics.c:5579:48: style: Condition '!fade_fg' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/windows.c:168:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/windows.c:187:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/windows.c:344:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/windows.c:355:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/graphics.c:4006:9: warning: If memory allocation fails, then there is a possible null pointer dereference: o [nullPointerOutOfMemory] instead-3.5.2+dfsg/src/graphics.c:4005:12: note: Assuming allocation function fails instead-3.5.2+dfsg/src/graphics.c:4005:12: note: Assignment 'o=malloc(sz+1)', assigned value is 0 instead-3.5.2+dfsg/src/graphics.c:4006:9: note: Null pointer dereference instead-3.5.2+dfsg/src/graphics.c:4007:2: warning: If memory allocation fails, then there is a possible null pointer dereference: o [nullPointerOutOfMemory] instead-3.5.2+dfsg/src/graphics.c:4005:12: note: Assuming allocation function fails instead-3.5.2+dfsg/src/graphics.c:4005:12: note: Assignment 'o=malloc(sz+1)', assigned value is 0 instead-3.5.2+dfsg/src/graphics.c:4007:2: note: Null pointer dereference instead-3.5.2+dfsg/src/graphics.c:1621:10: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] instead-3.5.2+dfsg/src/windows.c:344:2: warning: Return value of function freopen() is not used. [ignoredReturnValue] instead-3.5.2+dfsg/src/windows.c:345:2: warning: Return value of function freopen() is not used. [ignoredReturnValue] instead-3.5.2+dfsg/src/windows.c:346:2: warning: Return value of function freopen() is not used. [ignoredReturnValue] instead-3.5.2+dfsg/src/windows.c:210:6: style: Condition '!app' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/windows.c:281:6: style: Condition '!p' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/windows.c:141:22: style:inconclusive: Function 'sdl_path' argument 1 names different: declaration 'path' definition 'p'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/utils.h:61:29: note: Function 'sdl_path' argument 1 names different: declaration 'path' definition 'p'. instead-3.5.2+dfsg/src/windows.c:141:22: note: Function 'sdl_path' argument 1 names different: declaration 'path' definition 'p'. instead-3.5.2+dfsg/src/windows.c:297:27: style:inconclusive: Function 'game_save_path' argument 1 names different: declaration 'rc' definition 'cr'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/game.h:128:34: note: Function 'game_save_path' argument 1 names different: declaration 'rc' definition 'cr'. instead-3.5.2+dfsg/src/windows.c:297:27: note: Function 'game_save_path' argument 1 names different: declaration 'rc' definition 'cr'. instead-3.5.2+dfsg/src/windows.c:209:8: style: Variable 'app' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/windows.c:280:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/windows.c:300:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:473:27: style:inconclusive: Function 'gfx_free_image' argument 1 names different: declaration 'pixmap' definition 'p'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/graphics.h:119:34: note: Function 'gfx_free_image' argument 1 names different: declaration 'pixmap' definition 'p'. instead-3.5.2+dfsg/src/graphics.c:473:27: note: Function 'gfx_free_image' argument 1 names different: declaration 'pixmap' definition 'p'. instead-3.5.2+dfsg/src/graphics.c:1386:26: style:inconclusive: Function 'gfx_stop_anim' argument 1 names different: declaration 'img' definition 'p'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/graphics.h:233:33: note: Function 'gfx_stop_anim' argument 1 names different: declaration 'img' definition 'p'. instead-3.5.2+dfsg/src/graphics.c:1386:26: note: Function 'gfx_stop_anim' argument 1 names different: declaration 'img' definition 'p'. instead-3.5.2+dfsg/src/graphics.c:1406:27: style:inconclusive: Function 'gfx_start_anim' argument 1 names different: declaration 'img' definition 'p'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/graphics.h:231:34: note: Function 'gfx_start_anim' argument 1 names different: declaration 'img' definition 'p'. instead-3.5.2+dfsg/src/graphics.c:1406:27: note: Function 'gfx_start_anim' argument 1 names different: declaration 'img' definition 'p'. instead-3.5.2+dfsg/src/graphics.c:1492:62: style:inconclusive: Function 'gfx_bg' argument 6 names different: declaration 'brdcol' definition 'bcol'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/graphics.h:77:69: note: Function 'gfx_bg' argument 6 names different: declaration 'brdcol' definition 'bcol'. instead-3.5.2+dfsg/src/graphics.c:1492:62: note: Function 'gfx_bg' argument 6 names different: declaration 'brdcol' definition 'bcol'. instead-3.5.2+dfsg/src/graphics.c:3621:46: style:inconclusive: Function 'txt_layout_words' argument 2 names different: declaration 'w' definition 'v'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/graphics.h:181:53: note: Function 'txt_layout_words' argument 2 names different: declaration 'w' definition 'v'. instead-3.5.2+dfsg/src/graphics.c:3621:46: note: Function 'txt_layout_words' argument 2 names different: declaration 'w' definition 'v'. instead-3.5.2+dfsg/src/graphics.c:4258:25: style:inconclusive: Function 'xref_update' argument 1 names different: declaration 'xref' definition 'pxref'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/graphics.h:230:32: note: Function 'xref_update' argument 1 names different: declaration 'xref' definition 'pxref'. instead-3.5.2+dfsg/src/graphics.c:4258:25: note: Function 'xref_update' argument 1 names different: declaration 'xref' definition 'pxref'. instead-3.5.2+dfsg/src/graphics.c:5506:46: style:inconclusive: Function 'txt_layout_real_size' argument 2 names different: declaration 'w' definition 'pw'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/graphics.h:207:53: note: Function 'txt_layout_real_size' argument 2 names different: declaration 'w' definition 'pw'. instead-3.5.2+dfsg/src/graphics.c:5506:46: note: Function 'txt_layout_real_size' argument 2 names different: declaration 'w' definition 'pw'. instead-3.5.2+dfsg/src/graphics.c:5506:55: style:inconclusive: Function 'txt_layout_real_size' argument 3 names different: declaration 'h' definition 'ph'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/graphics.h:207:61: note: Function 'txt_layout_real_size' argument 3 names different: declaration 'h' definition 'ph'. instead-3.5.2+dfsg/src/graphics.c:5506:55: note: Function 'txt_layout_real_size' argument 3 names different: declaration 'h' definition 'ph'. instead-3.5.2+dfsg/src/graphics.c:5754:24: style:inconclusive: Function 'gfx_set_icon' argument 1 names different: declaration 'icon' definition 'ic'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/graphics.h:100:31: note: Function 'gfx_set_icon' argument 1 names different: declaration 'icon' definition 'ic'. instead-3.5.2+dfsg/src/graphics.c:5754:24: note: Function 'gfx_set_icon' argument 1 names different: declaration 'icon' definition 'ic'. instead-3.5.2+dfsg/src/graphics.c:984:9: style: Local variable 'img' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/graphics.c:958:8: note: Shadowed declaration instead-3.5.2+dfsg/src/graphics.c:984:9: note: Shadow variable instead-3.5.2+dfsg/src/graphics.c:1284:15: style: Variable 'pixbuf' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:1339:15: style: Variable 'pixbuf' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:1919:32: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'mouse_watcher' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] instead-3.5.2+dfsg/src/graphics.c:2241:20: note: You might need to cast the function pointer here instead-3.5.2+dfsg/src/graphics.c:1919:32: note: Parameter 'userdata' can be declared as pointer to const instead-3.5.2+dfsg/src/graphics.c:2401:42: style: Parameter 'screen' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/graphics.c:2825:15: style: Variable 'w' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:2839:42: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/graphics.c:2934:15: style: Variable 'line' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:3274:29: style: Parameter 'link' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/graphics.c:3431:17: style: Variable 'layout' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:3448:56: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/graphics.c:3511:17: style: Variable 'layout' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:4178:17: style: Variable 'layout' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:4218:17: style: Variable 'layout' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:4323:17: style: Variable 'layout' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:4362:18: style: Variable 'box' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:4396:18: style: Variable 'box' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:4441:17: style: Variable 'l' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:4500:17: style: Variable 'l' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:4517:18: style: Variable 'box' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:4790:27: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/graphics.c:4990:15: style: Variable 'line' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:5319:17: style: Variable 'l' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:5331:17: style: Variable 'layout' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:5339:15: style: Variable 'xref' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:5424:15: style: Variable 'xref' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:5432:15: style: Variable 'xref' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:5448:15: style: Variable 'xref' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/graphics.c:5593:42: style: Parameter 'aux' can be declared as pointer to const. However it seems that 'gfx_change_screen_step' is a callback function, if 'aux' is declared with const you might also need to cast function pointer(s). [constParameterCallback] instead-3.5.2+dfsg/src/graphics.c:5612:18: note: You might need to cast the function pointer here instead-3.5.2+dfsg/src/graphics.c:5593:42: note: Parameter 'aux' can be declared as pointer to const instead-3.5.2+dfsg/src/winrt.c:128:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] instead-3.5.2+dfsg/src/themes.c:139:44: style: Condition '!strcmp(v,"1")' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/themes.c:141:45: style: Condition '!strcmp(v,"1")' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/winrt.c:107:22: style:inconclusive: Function 'sdl_path' argument 1 names different: declaration 'path' definition 'p'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/utils.h:61:29: note: Function 'sdl_path' argument 1 names different: declaration 'path' definition 'p'. instead-3.5.2+dfsg/src/winrt.c:107:22: note: Function 'sdl_path' argument 1 names different: declaration 'path' definition 'p'. instead-3.5.2+dfsg/src/winrt.c:213:27: style:inconclusive: Function 'game_save_path' argument 1 names different: declaration 'rc' definition 'cr'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/game.h:128:34: note: Function 'game_save_path' argument 1 names different: declaration 'rc' definition 'cr'. instead-3.5.2+dfsg/src/winrt.c:213:27: note: Function 'game_save_path' argument 1 names different: declaration 'rc' definition 'cr'. instead-3.5.2+dfsg/src/winrt.c:139:8: style: Variable 'app' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/winrt.c:196:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/winrt.c:216:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/themes.c:719:8: style: Local variable 'val' shadows outer argument [shadowArgument] instead-3.5.2+dfsg/src/themes.c:711:36: note: Shadowed declaration instead-3.5.2+dfsg/src/themes.c:719:8: note: Shadow variable instead-3.5.2+dfsg/src/themes.c:219:11: style: Variable 'c' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/themes.c:245:14: style: Variable 'dpi' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/themes.c:632:26: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/themes.c:646:8: style: Variable 'num' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/themes.c:648:10: style: Variable 'f' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/themes.c:714:21: style: Variable 't' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/themes.c:1213:8: style: Variable 'idf_de' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/themes.c:1262:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/themes.c:1345:15: style: Variable 'game' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:2541:13: style: The if condition is the same as the previous if condition [duplicateCondition] instead-3.5.2+dfsg/src/game.c:2524:13: note: First condition instead-3.5.2+dfsg/src/game.c:2541:13: note: Second condition instead-3.5.2+dfsg/src/game.c:916:6: style: Condition 'browse_dialog' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/game.c:1222:6: style: Condition '!o' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/game.c:2386:9: style: Return value 'browse_dialog' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/game.c:1441:7: style: Redundant initialization for 'img2'. The initialized value is overwritten before it is read. [redundantInitialization] instead-3.5.2+dfsg/src/game.c:1396:13: note: img2 is initialized instead-3.5.2+dfsg/src/game.c:1441:7: note: img2 is overwritten instead-3.5.2+dfsg/src/game.c:74:35: style:inconclusive: Function 'game_res_err_msg' argument 1 names different: declaration 's' definition 'filename'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/game.h:100:43: note: Function 'game_res_err_msg' argument 1 names different: declaration 's' definition 'filename'. instead-3.5.2+dfsg/src/game.c:74:35: note: Function 'game_res_err_msg' argument 1 names different: declaration 's' definition 'filename'. instead-3.5.2+dfsg/src/game.c:92:25: style:inconclusive: Function 'is_game' argument 1 names different: declaration 'games' definition 'path'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/game.h:95:32: note: Function 'is_game' argument 1 names different: declaration 'games' definition 'path'. instead-3.5.2+dfsg/src/game.c:92:25: note: Function 'is_game' argument 1 names different: declaration 'games' definition 'path'. instead-3.5.2+dfsg/src/game.c:92:43: style:inconclusive: Function 'is_game' argument 2 names different: declaration 'name' definition 'n'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/game.h:95:51: note: Function 'is_game' argument 2 names different: declaration 'name' definition 'n'. instead-3.5.2+dfsg/src/game.c:92:43: note: Function 'is_game' argument 2 names different: declaration 'name' definition 'n'. instead-3.5.2+dfsg/src/game.c:514:22: style:inconclusive: Function 'games_remove' argument 1 names different: declaration 'nr' definition 'gtr'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/game.h:96:29: note: Function 'games_remove' argument 1 names different: declaration 'nr' definition 'gtr'. instead-3.5.2+dfsg/src/game.c:514:22: note: Function 'games_remove' argument 1 names different: declaration 'nr' definition 'gtr'. instead-3.5.2+dfsg/src/game.c:1070:27: style:inconclusive: Function 'game_init' argument 1 names different: declaration 'game' definition 'name'. [funcArgNamesDifferent] instead-3.5.2+dfsg/src/game.h:72:34: note: Function 'game_init' argument 1 names different: declaration 'game' definition 'name'. instead-3.5.2+dfsg/src/game.c:1070:27: note: Function 'game_init' argument 1 names different: declaration 'game' definition 'name'. instead-3.5.2+dfsg/src/game.c:1657:8: style: Local variable 'menu' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/game.c:534:14: note: Shadowed declaration instead-3.5.2+dfsg/src/game.c:1657:8: note: Shadow variable instead-3.5.2+dfsg/src/game.c:3628:8: style: Local variable 'x' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/game.c:3588:13: note: Shadowed declaration instead-3.5.2+dfsg/src/game.c:3628:8: note: Shadow variable instead-3.5.2+dfsg/src/game.c:3628:11: style: Local variable 'y' shadows outer variable [shadowVariable] instead-3.5.2+dfsg/src/game.c:3588:20: note: Shadowed declaration instead-3.5.2+dfsg/src/game.c:3628:11: note: Shadow variable instead-3.5.2+dfsg/src/game.c:468:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:674:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:713:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:766:15: style: Variable 'g' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:871:8: style: Variable 'og' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:887:36: style: Parameter 'data' can be declared as pointer to const. However it seems that '_game_gfx_commit' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] instead-3.5.2+dfsg/src/game.c:903:21: note: You might need to cast the function pointer here instead-3.5.2+dfsg/src/game.c:887:36: note: Parameter 'data' can be declared as pointer to const instead-3.5.2+dfsg/src/game.c:1245:13: style: Variable 'o' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:1259:13: style: Variable 'o' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:2525:9: style: Variable 'link' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:2881:54: style: Parameter 'elem' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/game.c:3005:13: style: Variable 'o' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:3016:13: style: Variable 'o' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:3027:13: style: Variable 'o' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:3039:13: style: Variable 'o' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:3048:37: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/game.c:3122:13: style: Variable 'o' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:3123:21: style: Variable 't' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/game.c:3342:48: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/game.c:3547:44: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/game.c:1719:10: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/instead_sprites.c:2592:24: style: Condition 'pixels_create_meta(instead_lua())' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/instead_sprites.c:2592:24: note: Calling function 'pixels_create_meta' returns 0 instead-3.5.2+dfsg/src/instead_sprites.c:2592:24: note: Condition 'pixels_create_meta(instead_lua())' is always false instead-3.5.2+dfsg/src/instead_sprites.c:172:41: style: Parameter 'L' can be declared as pointer to const. However it seems that 'luaB_free_sprites' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] instead-3.5.2+dfsg/src/instead_sprites.c:2544:27: note: You might need to cast the function pointer here instead-3.5.2+dfsg/src/instead_sprites.c:172:41: note: Parameter 'L' can be declared as pointer to const instead-3.5.2+dfsg/src/instead_sprites.c:192:10: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sprites.c:339:10: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sprites.c:546:10: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sprites.c:606:10: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sprites.c:643:10: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sprites.c:691:10: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sprites.c:1067:21: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sprites.c:1078:43: style: Parameter 's' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/instead_sprites.c:1093:42: style: Parameter 's' can be declared as pointer to const [constParameterPointer] instead-3.5.2+dfsg/src/instead_sprites.c:2132:23: style: Variable 'optr' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sprites.c:2258:18: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/instead_sprites.c:1219:45: style: Variable 'col[3]' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/instead_sprites.c:1949:12: style: Variable 'nodes' is assigned a value that is never used. [unreadVariable] instead-3.5.2+dfsg/src/menu.c:104:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] instead-3.5.2+dfsg/src/menu.c:106:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] instead-3.5.2+dfsg/src/menu.c:190:8: style: Condition '!i' is always false [knownConditionTrueFalse] instead-3.5.2+dfsg/src/menu.c:88:10: style: Variable 'm' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/menu.c:149:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/menu.c:185:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/menu.c:460:16: style: Variable 'g' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/menu.c:497:9: style: Variable 'just' can be declared as const array [constVariable] instead-3.5.2+dfsg/src/menu.c:498:9: style: Variable 'kbd' can be declared as const array [constVariable] instead-3.5.2+dfsg/src/menu.c:711:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/menu.c:854:10: style: Variable 'og' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/menu.c:1027:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] instead-3.5.2+dfsg/src/menu.c:984:38: style: Variable 'p' is assigned a value that is never used. [unreadVariable] diff: head instead-3.5.2+dfsg/src/SDL_gif.c:688:48: warning: If resource allocation fails, then there is a possible null pointer dereference: image [nullPointerOutOfResources] instead-3.5.2+dfsg/src/SDL_gif.c:681:13: note: Assuming allocation function fails instead-3.5.2+dfsg/src/SDL_gif.c:681:13: note: Assignment 'image=SDL_CreateRGBSurface(SDL_SWSURFACE,len,height,8,0,0,0,0)', assigned value is 0 instead-3.5.2+dfsg/src/SDL_gif.c:688:48: note: Null pointer dereference head instead-3.5.2+dfsg/src/SDL_rotozoom.c:126:22: warning: Either the condition 'rz_dst==NULL' is redundant or there is possible null pointer dereference: dst. [nullPointerRedundantCheck] instead-3.5.2+dfsg/src/SDL_rotozoom.c:1663:29: note: Assuming that condition 'rz_dst==NULL' is not redundant instead-3.5.2+dfsg/src/SDL_rotozoom.c:1662:39: note: Calling function '_shrinkSurfaceRGBA', 2nd argument 'rz_dst' value is 0 instead-3.5.2+dfsg/src/SDL_rotozoom.c:126:22: note: Null pointer dereference head instead-3.5.2+dfsg/src/game.c:1222:6: style: Condition '!o' is always false [knownConditionTrueFalse] 2.17.0 instead-3.5.2+dfsg/src/game.c:477:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 instead-3.5.2+dfsg/src/game.c:498:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] head instead-3.5.2+dfsg/src/graphics.c:1621:10: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] 2.17.0 instead-3.5.2+dfsg/src/instead/idf.c:307:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 instead-3.5.2+dfsg/src/instead/lfs.c:56:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 instead-3.5.2+dfsg/src/instead_sound.c:689:40: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] head instead-3.5.2+dfsg/src/instead_sound.c:689:40: style: Parameter 'L' can be declared as pointer to const. However it seems that 'luaB_free_sounds' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] instead-3.5.2+dfsg/src/instead_sound.c:784:26: note: You might need to cast the function pointer here instead-3.5.2+dfsg/src/instead_sound.c:689:40: note: Parameter 'L' can be declared as pointer to const 2.17.0 instead-3.5.2+dfsg/src/instead_sprites.c:172:41: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] head instead-3.5.2+dfsg/src/instead_sprites.c:172:41: style: Parameter 'L' can be declared as pointer to const. However it seems that 'luaB_free_sprites' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] instead-3.5.2+dfsg/src/instead_sprites.c:2544:27: note: You might need to cast the function pointer here instead-3.5.2+dfsg/src/instead_sprites.c:172:41: note: Parameter 'L' can be declared as pointer to const 2.17.0 instead-3.5.2+dfsg/src/menu.c:1036:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 instead-3.5.2+dfsg/src/menu.c:1053:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 instead-3.5.2+dfsg/src/themes.c:1271:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 instead-3.5.2+dfsg/src/themes.c:1289:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 instead-3.5.2+dfsg/src/utils.c:478:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] head instead-3.5.2+dfsg/src/windows.c:210:6: style: Condition '!app' is always false [knownConditionTrueFalse] head instead-3.5.2+dfsg/src/windows.c:281:6: style: Condition '!p' is always false [knownConditionTrueFalse] DONE