2025-07-11 23:37 ftp://ftp.de.debian.org/debian/pool/main/t/tomatoes/tomatoes_1.55.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -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: 242 236 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: tomatoes-1.55/src/bonus.cpp:110:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bonus.cpp:144:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable level_time [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bonus.cpp:165:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bonus.cpp:193:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FALSE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bonus.cpp:213:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable anim_angle [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bonus.cpp:235:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bonus.cpp:273:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/comments.cpp:62:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_COMMENTS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/comments.cpp:72:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_COMMENTS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/comments.cpp:82:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_COMMENTS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/comments.cpp:93:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_COMMENTS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/comments.cpp:104:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable text [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/comments.cpp:113:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable text [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/comments.cpp:124:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable color [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/comments.cpp:133:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pos [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/comments.cpp:149:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable text [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/config.cpp:98:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_DIR [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bomb.cpp:130:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bomb.cpp:200:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bomb.cpp:223:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bomb.cpp:316:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable owner [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bomb.cpp:375:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable anim_angle [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bomb.cpp:511:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/bomb.cpp:549:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/config.cpp:125:9: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:105:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:105:17: note: Assignment 'f=fopen(file,"rt")', assigned value is 0 tomatoes-1.55/src/config.cpp:125:9: note: Null pointer dereference tomatoes-1.55/src/config.cpp:136:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:136:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:137:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:137:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:138:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:138:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:139:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:139:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:140:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:140:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:141:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:141:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:142:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:142:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:143:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:143:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:144:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:144:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:145:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:145:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:146:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:146:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:147:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:147:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:148:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:148:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:149:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:149:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:150:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:150:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:151:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:151:10: note: Null pointer dereference tomatoes-1.55/src/config.cpp:152:9: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] tomatoes-1.55/src/config.cpp:132:17: note: Assuming allocation function fails tomatoes-1.55/src/config.cpp:132:17: note: Assignment 'f=fopen(file,"wt")', assigned value is 0 tomatoes-1.55/src/config.cpp:152:9: note: Null pointer dereference tomatoes-1.55/src/config.cpp:130:38: style: Parameter 'conf' can be declared as pointer to const [constParameterPointer] tomatoes-1.55/src/effects.cpp:51:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable part_glow [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/effects.cpp:90:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable part_fire [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/effects.cpp:132:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/effects.cpp:204:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_DEPTH_TEST [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/effects.cpp:251:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXP_BOMB_NORMAL [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/effects.cpp:56:8: style: Local variable 'dir' shadows outer variable [shadowVariable] tomatoes-1.55/src/effects.cpp:46:7: note: Shadowed declaration tomatoes-1.55/src/effects.cpp:56:8: note: Shadow variable tomatoes-1.55/src/enemy.cpp:97:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable two_players [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:156:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:187:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENEMY_AMOUNT [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:249:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIR_N [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:266:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:300:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chase [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:704:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dying [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:727:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dir [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:740:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dir [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:753:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dir [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/enemy.cpp:824:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/font.cpp:93:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_BYTE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/font.cpp:122:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_BYTE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/font.cpp:142:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/font.cpp:182:51: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] tomatoes-1.55/src/game.cpp:105:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_BGROUNDS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/game.cpp:122:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_DEPTH_BUFFER_BIT [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/game.cpp:338:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable game_paused [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:75:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:98:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FALSE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:109:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:207:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:250:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pos [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:284:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:318:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:335:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chase [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:376:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dir [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:397:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:548:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:613:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dir [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:626:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dir [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/helpers.cpp:637:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/game.cpp:289:30: style: Parameter 'event' can be declared as reference to const [constParameterReference] tomatoes-1.55/src/hiscore.cpp:99:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HISCORE_DIR [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/hiscore.cpp:112:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/hiscore.cpp:353:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable font1 [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/hiscore.cpp:412:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_NAMES [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/hiscore.cpp:435:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_NAMES [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/hiscore.cpp:449:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/hiscore.cpp:488:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RECORD [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/hiscore.cpp:494:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_NAMES [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/init.cpp:72:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/init.cpp:97:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_VIDEO [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/levels.cpp:146:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_BGROUNDS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/levels.cpp:177:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cur_bground [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/levels.cpp:188:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable using_special_power [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/levels.cpp:238:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LEVEL_PAUSE_END [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/levels.cpp:337:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable game_paused [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/hiscore.cpp:413:42: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] tomatoes-1.55/src/hiscore.cpp:406:14: note: Assuming allocation function fails tomatoes-1.55/src/hiscore.cpp:406:14: note: Assignment 'fout=fopen(file,"wb")', assigned value is 0 tomatoes-1.55/src/hiscore.cpp:413:42: note: Null pointer dereference tomatoes-1.55/src/hiscore.cpp:417:37: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] tomatoes-1.55/src/hiscore.cpp:406:14: note: Assuming allocation function fails tomatoes-1.55/src/hiscore.cpp:406:14: note: Assignment 'fout=fopen(file,"wb")', assigned value is 0 tomatoes-1.55/src/hiscore.cpp:417:37: note: Null pointer dereference tomatoes-1.55/src/hiscore.cpp:419:9: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] tomatoes-1.55/src/hiscore.cpp:406:14: note: Assuming allocation function fails tomatoes-1.55/src/hiscore.cpp:406:14: note: Assignment 'fout=fopen(file,"wb")', assigned value is 0 tomatoes-1.55/src/hiscore.cpp:419:9: note: Null pointer dereference tomatoes-1.55/src/hiscore.cpp:472:15: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/hiscore.cpp:473:15: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/hiscore.cpp:117:13: style: Variable 'typed' is assigned a value that is never used. [unreadVariable] tomatoes-1.55/src/hiscore.cpp:303:11: style: Variable 'typed' is assigned a value that is never used. [unreadVariable] tomatoes-1.55/src/main.cpp:63:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/main.cpp:116:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable font1 [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/mpak.cpp:193:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_files [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/mpak.cpp:224:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/mpak.cpp:341:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/mpak.cpp:408:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/mpak.cpp:456:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/mpak.cpp:528:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable current_file_size [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/mpak.cpp:556:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/menu.cpp:132:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable font1 [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/menu.cpp:162:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/menu.cpp:541:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MENU_START [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/mpak.cpp:420:3: error: Resource leak: fin [resourceLeak] tomatoes-1.55/src/mpak.cpp:93:21: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/mpak.cpp:155:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] tomatoes-1.55/src/mpak.cpp:93:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tomatoes-1.55/src/mpak.cpp:105:27: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] tomatoes-1.55/src/mymath.cpp:43:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/menu.cpp:586:26: style: Condition 'setting_key==true' is always true [knownConditionTrueFalse] tomatoes-1.55/src/menu.cpp:583:21: note: Assuming that condition 'setting_key==false' is not redundant tomatoes-1.55/src/menu.cpp:586:26: note: Condition 'setting_key==true' is always true tomatoes-1.55/src/menu.cpp:591:26: style: Condition 'setting_key==true' is always true [knownConditionTrueFalse] tomatoes-1.55/src/menu.cpp:583:21: note: Assuming that condition 'setting_key==false' is not redundant tomatoes-1.55/src/menu.cpp:591:26: note: Condition 'setting_key==true' is always true tomatoes-1.55/src/particle.cpp:80:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/particle.cpp:157:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FALSE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/particle.cpp:191:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable z [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/particle.cpp:220:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable life [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/particle.cpp:257:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pos [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/particle.cpp:98:84: style: Parameter 'color1' can be declared as const array [constParameter] tomatoes-1.55/src/particle.cpp:98:101: style: Parameter 'color2' can be declared as const array [constParameter] tomatoes-1.55/src/pathfinder.cpp:57:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_FAILED [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/pathfinder.cpp:214:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/pathfinder.cpp:224:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/pathfinder.cpp:236:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/pathfinder.cpp:245:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/pathfinder.cpp:190:14: style: Local variable 'point' shadows outer variable [shadowVariable] tomatoes-1.55/src/pathfinder.cpp:182:13: note: Shadowed declaration tomatoes-1.55/src/pathfinder.cpp:190:14: note: Shadow variable tomatoes-1.55/src/player.cpp:111:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable two_players [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:266:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:319:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:745:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jumping [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:786:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bonus [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:845:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dir [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:858:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dir [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:874:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:990:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:1020:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jumping [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/screenshot.cpp:72:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable game_paused [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/screenshot.cpp:92:9: warning: If memory allocation fails, then there is a possible null pointer dereference: image_data [nullPointerOutOfMemory] tomatoes-1.55/src/screenshot.cpp:91:37: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:91:15: note: Assignment 'image_data=(unsigned char*)malloc(screen->w*screen->h*3)', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:92:9: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:133:47: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:133:47: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:134:47: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:134:47: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:137:48: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:137:48: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:140:44: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:140:44: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:141:44: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:141:44: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:142:47: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:142:47: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:143:44: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:143:44: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:144:44: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:144:44: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:147:35: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:147:35: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:148:35: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:148:35: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:149:47: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:149:47: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:152:47: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:152:47: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:159:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: image_data [nullPointerOutOfMemory] tomatoes-1.55/src/screenshot.cpp:91:37: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:91:15: note: Assignment 'image_data=(unsigned char*)malloc(screen->w*screen->h*3)', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:96:39: note: Calling function 'save_tga', 4th argument 'image_data' value is 0 tomatoes-1.55/src/screenshot.cpp:159:16: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:160:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: image_data [nullPointerOutOfMemory] tomatoes-1.55/src/screenshot.cpp:91:37: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:91:15: note: Assignment 'image_data=(unsigned char*)malloc(screen->w*screen->h*3)', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:96:39: note: Calling function 'save_tga', 4th argument 'image_data' value is 0 tomatoes-1.55/src/screenshot.cpp:160:3: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:160:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: image_data [nullPointerOutOfMemory] tomatoes-1.55/src/screenshot.cpp:91:37: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:91:15: note: Assignment 'image_data=(unsigned char*)malloc(screen->w*screen->h*3)', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:96:39: note: Calling function 'save_tga', 4th argument 'image_data' value is 0 tomatoes-1.55/src/screenshot.cpp:160:29: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:161:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: image_data [nullPointerOutOfMemory] tomatoes-1.55/src/screenshot.cpp:91:37: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:91:15: note: Assignment 'image_data=(unsigned char*)malloc(screen->w*screen->h*3)', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:96:39: note: Calling function 'save_tga', 4th argument 'image_data' value is 0 tomatoes-1.55/src/screenshot.cpp:161:3: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:165:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: image_data [nullPointerOutOfMemory] tomatoes-1.55/src/screenshot.cpp:91:37: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:91:15: note: Assignment 'image_data=(unsigned char*)malloc(screen->w*screen->h*3)', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:96:39: note: Calling function 'save_tga', 4th argument 'image_data' value is 0 tomatoes-1.55/src/screenshot.cpp:165:9: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:165:56: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:165:56: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:168:9: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] tomatoes-1.55/src/screenshot.cpp:121:14: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:121:14: note: Assignment 'file=fopen(filename,"wb")', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:168:9: note: Null pointer dereference tomatoes-1.55/src/screenshot.cpp:91:15: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/screenshot.cpp:114:16: style: The scope of the variable 'color_swap' can be reduced. [variableScope] tomatoes-1.55/src/screenshot.cpp:53:24: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] tomatoes-1.55/src/screenshot.cpp:155:13: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] tomatoes-1.55/src/select_special.cpp:89:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_ICONS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/select_special.cpp:232:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable level_pause [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/select_special.cpp:364:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_ICONS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/select_special.cpp:392:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_ICONS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/player.cpp:892:6: style: The scope of the variable 'jpox' can be reduced. [variableScope] tomatoes-1.55/src/player.cpp:893:6: style: The scope of the variable 'jpoy' can be reduced. [variableScope] tomatoes-1.55/src/player.cpp:892:11: style: Variable 'jpox' is assigned a value that is never used. [unreadVariable] tomatoes-1.55/src/player.cpp:893:11: style: Variable 'jpoy' is assigned a value that is never used. [unreadVariable] tomatoes-1.55/src/soundmusic.cpp:81:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MUSIC_DIR [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/soundmusic.cpp:151:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sound [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/soundmusic.cpp:172:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_SOUNDS [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/soundmusic.cpp:203:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sound [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/soundmusic.cpp:261:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sound [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/soundmusic.cpp:291:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sound [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/soundmusic.cpp:102:8: style: The scope of the variable 'ext' can be reduced. [variableScope] tomatoes-1.55/src/soundmusic.cpp:78:10: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] tomatoes-1.55/src/select_special.cpp:302:6: style: Condition 'disabled' is always false [knownConditionTrueFalse] tomatoes-1.55/src/select_special.cpp:300:6: note: Assuming that condition 'disabled' is not redundant tomatoes-1.55/src/select_special.cpp:302:6: note: Condition 'disabled' is always false tomatoes-1.55/src/select_special.cpp:254:49: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/select_special.cpp:270:49: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/select_special.cpp:308:41: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/special_power.cpp:191:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable count [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:250:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable count [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:279:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable oldx [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:316:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable explo_delay [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:382:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:420:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alive [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:455:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable reload [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:513:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable map [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:535:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable who [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:558:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable who [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:623:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIR_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:681:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIR_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:722:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENEMY_AMOUNT [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:766:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENEMY_AMOUNT [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:805:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENEMY_AMOUNT [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/teleport.cpp:56:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/teleport.cpp:130:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FALSE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/special_power.cpp:738:3: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] tomatoes-1.55/src/texture.cpp:154:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_RGB [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/texture.cpp:223:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_RGB [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/texture.cpp:257:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/texture.cpp:266:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_RGB [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/texture.cpp:116:25: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/texture.cpp:117:11: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/texture.cpp:117:49: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/texture.cpp:118:11: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/texture.cpp:215:25: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/texture.cpp:216:11: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/texture.cpp:216:49: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/texture.cpp:217:11: style: C-style pointer casting [cstyleCast] tomatoes-1.55/src/texture.cpp:116:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] tomatoes-1.55/src/texture.cpp:118:63: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] tomatoes-1.55/src/texture.cpp:215:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] tomatoes-1.55/src/texture.cpp:217:63: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] tomatoes-1.55/src/texture.cpp:271:9: warning: Size of pointer 'data' used instead of size of its data. [pointerSize] tomatoes-1.55/src/timer.cpp:44:46: style: Parameter 'param' can be declared as pointer to const. However it seems that 'timer_callback' is a callback function, if 'param' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tomatoes-1.55/src/timer.cpp:57:35: note: You might need to cast the function pointer here tomatoes-1.55/src/timer.cpp:44:46: note: Parameter 'param' can be declared as pointer to const tomatoes-1.55/src/tilemap.cpp:76:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_TEX [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/tilemap.cpp:87:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/tilemap.cpp:105:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/tilemap.cpp:119:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_W [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/tilemap.cpp:133:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/tilemap.cpp:213:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHTING [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/tilemap.cpp:491:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/tilemap.cpp:536:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_H [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/trap.cpp:99:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FALSE [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/trap.cpp:120:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable anim [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/trap.cpp:164:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/trap.cpp:188:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] tomatoes-1.55/src/tilemap.cpp:273:9: style: The if condition is the same as the previous if condition [duplicateCondition] tomatoes-1.55/src/tilemap.cpp:260:9: note: First condition tomatoes-1.55/src/tilemap.cpp:273:9: note: Second condition tomatoes-1.55/src/tilemap.cpp:419:21: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] diff: 2.17.0 tomatoes-1.55/src/mpak.cpp:155:20: style: C-style pointer casting [cstyleCast] head tomatoes-1.55/src/mpak.cpp:155:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head tomatoes-1.55/src/screenshot.cpp:160:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: image_data [nullPointerOutOfMemory] tomatoes-1.55/src/screenshot.cpp:91:37: note: Assuming allocation function fails tomatoes-1.55/src/screenshot.cpp:91:15: note: Assignment 'image_data=(unsigned char*)malloc(screen->w*screen->h*3)', assigned value is 0 tomatoes-1.55/src/screenshot.cpp:96:39: note: Calling function 'save_tga', 4th argument 'image_data' value is 0 tomatoes-1.55/src/screenshot.cpp:160:29: note: Null pointer dereference 2.17.0 tomatoes-1.55/src/soundmusic.cpp:95:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 tomatoes-1.55/src/texture.cpp:116:10: style: C-style pointer casting [cstyleCast] head tomatoes-1.55/src/texture.cpp:116:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head tomatoes-1.55/src/texture.cpp:116:25: style: C-style pointer casting [cstyleCast] head tomatoes-1.55/src/texture.cpp:117:49: style: C-style pointer casting [cstyleCast] head tomatoes-1.55/src/texture.cpp:118:63: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 tomatoes-1.55/src/texture.cpp:215:10: style: C-style pointer casting [cstyleCast] head tomatoes-1.55/src/texture.cpp:215:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head tomatoes-1.55/src/texture.cpp:215:25: style: C-style pointer casting [cstyleCast] head tomatoes-1.55/src/texture.cpp:216:49: style: C-style pointer casting [cstyleCast] head tomatoes-1.55/src/texture.cpp:217:63: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] DONE