2024-04-14 07:17 ftp://ftp.de.debian.org/debian/pool/main/a/abe/abe_1.1+dfsg.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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 01c049d (2024-04-13 21:28:19 +0200) count: 137 82 elapsed-time: 3.4 6.7 head-timing-info: old-timing-info: head results: abe-1.1.orig/src/Directories.c:36:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Directories.c:13:11: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] abe-1.1.orig/src/Directories.c:11:18: style: Variable 'pwent' can be declared as pointer to const [constVariablePointer] abe-1.1.orig/src/Directories.c:34:9: style: Variable 'hua' can be declared as pointer to const [constVariablePointer] abe-1.1.orig/src/Font.c:22:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Icons.c:62:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Font.c:56:9: style: Redundant initialization for 'p'. The initialized value is overwritten before it is read. [redundantInitialization] abe-1.1.orig/src/Font.c:55:11: note: p is initialized abe-1.1.orig/src/Font.c:56:9: note: p is overwritten abe-1.1.orig/src/Font.c:63:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Editor.c:21:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Editor.c:47:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Editor.c:427:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Editor.c:471:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_HWSURFACE [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:57:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:102:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:216:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:402:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:468:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:538:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:682:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:721:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:744:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Editor.c:142:16: style: Variable 'img' can be declared as pointer to const [constVariablePointer] abe-1.1.orig/src/Editor.c:116:15: style: Variable 'pos.pos_x' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Editor.c:117:15: style: Variable 'pos.pos_y' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Main.c:22:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_FULLSCREEN [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Main.c:86:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_DOUBLEBUF [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Image.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Image.c:327:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Image.c:416:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_RLEACCEL [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:104:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:160:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:226:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:287:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:356:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:437:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:827:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:1003:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:1061:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:1118:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:1248:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint16 [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:1405:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:1475:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:1522:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Game.c:554:27: style: Variable 'game.lastSavePosX' is reassigned a value before the old one has been used. [redundantAssignment] abe-1.1.orig/src/Game.c:553:27: note: game.lastSavePosX is assigned abe-1.1.orig/src/Game.c:554:27: note: game.lastSavePosX is overwritten abe-1.1.orig/src/Game.c:9:32: style: Parameter 'formatted_name' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Game.c:49:9: style: Variable 'err' can be declared as pointer to const [constVariablePointer] abe-1.1.orig/src/Game.c:336:26: style: Parameter 'event' can be declared as pointer to const. However it seems that 'gameMainLoop' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Game.c:799:24: note: You might need to cast the function pointer here abe-1.1.orig/src/Game.c:336:26: note: Parameter 'event' can be declared as pointer to const abe-1.1.orig/src/Game.c:14:41: warning: Uninitialized variable: path [uninitvar] abe-1.1.orig/src/Game.c:99:16: note: Calling function 'path_sprintf', 1st argument 'path' value is abe-1.1.orig/src/Game.c:14:41: note: Uninitialized variable: path abe-1.1.orig/src/MapIO.c:14:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/MapIO.c:77:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/MapIO.c:148:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/MapIO.c:207:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint16 [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/MapIO.c:252:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/MapIO.c:96:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] abe-1.1.orig/src/MapIO.c:163:5: error: Resource leak: fp [resourceLeak] abe-1.1.orig/src/MapIO.c:178:5: error: Memory leak: buff [memleak] abe-1.1.orig/src/MapIO.c:58:13: style:inconclusive: Function 'loadMap' argument 1 names different: declaration 'drawMap' definition 'draw_map'. [funcArgNamesDifferent] abe-1.1.orig/src/MapIO.h:11:17: note: Function 'loadMap' argument 1 names different: declaration 'drawMap' definition 'draw_map'. abe-1.1.orig/src/MapIO.c:58:13: note: Function 'loadMap' argument 1 names different: declaration 'drawMap' definition 'draw_map'. abe-1.1.orig/src/MapIO.c:66:29: style:inconclusive: Function 'loadMapPath' argument 2 names different: declaration 'drawMap' definition 'draw_map'. [funcArgNamesDifferent] abe-1.1.orig/src/MapIO.h:13:33: note: Function 'loadMapPath' argument 2 names different: declaration 'drawMap' definition 'draw_map'. abe-1.1.orig/src/MapIO.c:66:29: note: Function 'loadMapPath' argument 2 names different: declaration 'drawMap' definition 'draw_map'. abe-1.1.orig/src/MapIO.c:237:24: style:inconclusive: Function 'decompressMap' argument 1 names different: declaration 'data' definition 'p'. [funcArgNamesDifferent] abe-1.1.orig/src/MapIO.h:24:29: note: Function 'decompressMap' argument 1 names different: declaration 'data' definition 'p'. abe-1.1.orig/src/MapIO.c:237:24: note: Function 'decompressMap' argument 1 names different: declaration 'data' definition 'p'. abe-1.1.orig/src/MapIO.c:5:19: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/MapIO.c:10:9: style: Variable 'err' can be declared as pointer to const [constVariablePointer] abe-1.1.orig/src/MapIO.c:66:19: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/MapIO.c:72:9: style: Variable 'err' can be declared as pointer to const [constVariablePointer] abe-1.1.orig/src/MapIO.c:139:18: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/MapIO.c:139:30: style: Parameter 'to' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Menu.c:193:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Menu.c:244:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Menu.c:323:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_KEYDOWN [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Menu.c:72:23: error: Array 'entries[11]' accessed at index 49, which is out of bounds. [arrayIndexOutOfBounds] abe-1.1.orig/src/Menu.c:71:16: note: Assuming that condition 'i<50' is not redundant abe-1.1.orig/src/Menu.c:72:23: note: Array index out of bounds abe-1.1.orig/src/Monster.c:38:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:164:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:277:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:308:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:383:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:444:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:484:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:519:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:596:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:656:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:666:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:857:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:873:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:906:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:944:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Monster.c:993:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Map.c:1264:38: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] abe-1.1.orig/src/Map.c:1297:36: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] abe-1.1.orig/src/Map.c:1319:36: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] abe-1.1.orig/src/Map.c:442:13: style: Variable 'pos.w' is reassigned a value before the old one has been used. [redundantAssignment] abe-1.1.orig/src/Map.c:437:13: note: pos.w is assigned abe-1.1.orig/src/Map.c:442:13: note: pos.w is overwritten abe-1.1.orig/src/Map.c:443:13: style: Variable 'pos.h' is reassigned a value before the old one has been used. [redundantAssignment] abe-1.1.orig/src/Map.c:438:13: note: pos.h is assigned abe-1.1.orig/src/Map.c:443:13: note: pos.h is overwritten abe-1.1.orig/src/Map.c:1262:55: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] abe-1.1.orig/src/Map.c:1317:55: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] abe-1.1.orig/src/Map.c:1215:15: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Map.c:1419:62: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Map.c:1541:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Sound.c:53:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Sound.c:49:28: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Monster.c:669:5: warning: Either the condition '(live->custom=(int*)malloc(sizeof(int)))==NULL' is redundant or there is possible null pointer dereference: (int*)(live->custom). [nullPointerRedundantCheck] abe-1.1.orig/src/Monster.c:665:51: note: Assuming that condition '(live->custom=(int*)malloc(sizeof(int)))==NULL' is not redundant abe-1.1.orig/src/Monster.c:669:5: note: Null pointer dereference abe-1.1.orig/src/Monster.c:13:34: style: Parameter 'live' can be declared as pointer to const. However it seems that 'defaultMoveMonster' is a callback function, if 'live' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Monster.c:694:31: note: You might need to cast the function pointer here abe-1.1.orig/src/Monster.c:13:34: note: Parameter 'live' can be declared as pointer to const abe-1.1.orig/src/Monster.c:26:35: style: Parameter 'live' can be declared as pointer to const. However it seems that 'defaultBreedMonster' is a callback function, if 'live' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Monster.c:703:32: note: You might need to cast the function pointer here abe-1.1.orig/src/Monster.c:26:35: note: Parameter 'live' can be declared as pointer to const abe-1.1.orig/src/Monster.c:26:52: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'defaultBreedMonster' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Monster.c:703:32: note: You might need to cast the function pointer here abe-1.1.orig/src/Monster.c:26:52: note: Parameter 'pos' can be declared as pointer to const abe-1.1.orig/src/Monster.c:461:21: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'drawFire' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Monster.c:791:40: note: You might need to cast the function pointer here abe-1.1.orig/src/Monster.c:461:21: note: Parameter 'pos' can be declared as pointer to const abe-1.1.orig/src/Monster.c:604:33: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'defaultDetectMonster' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Monster.c:700:33: note: You might need to cast the function pointer here abe-1.1.orig/src/Monster.c:604:33: note: Parameter 'pos' can be declared as pointer to const abe-1.1.orig/src/Monster.c:607:16: style: Variable 'img' can be declared as pointer to const [constVariablePointer] abe-1.1.orig/src/Monster.c:628:23: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'detectFire' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Monster.c:795:42: note: You might need to cast the function pointer here abe-1.1.orig/src/Monster.c:628:23: note: Parameter 'pos' can be declared as pointer to const abe-1.1.orig/src/Monster.c:539:9: style: Variable 'y' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Splash.c:49:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMOD_LALT [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Splash.c:101:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Splash.c:125:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Main.c:91:9: style: Variable 'mapname' can be declared as pointer to const [constVariablePointer] abe-1.1.orig/src/Main.c:204:13: style: Variable 'mapname' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Main.c:205:14: style: Variable 'mapwidth' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Main.c:206:15: style: Variable 'mapheight' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Main.c:208:13: style: Variable 'mapname' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Main.c:209:14: style: Variable 'mapwidth' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Main.c:210:15: style: Variable 'mapheight' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Main.c:208:15: style: Variable 'mapname' is allocated memory that is never used. [unusedAllocatedMemory] abe-1.1.orig/src/Splash.c:23:28: style: Parameter 'event' can be declared as pointer to const. However it seems that 'splashMainLoop' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Splash.c:135:24: note: You might need to cast the function pointer here abe-1.1.orig/src/Splash.c:23:28: note: Parameter 'event' can be declared as pointer to const abe-1.1.orig/src/Splash.c:93:8: style: Variable 'line' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Util.c:79:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint16 [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Util.c:148:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint16 [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Util.c:212:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_HWSURFACE [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Util.c:279:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] abe-1.1.orig/src/Util.c:71:32: style:inconclusive: Function 'compress' argument 2 names different: declaration 'nmemb' definition 'size'. [funcArgNamesDifferent] abe-1.1.orig/src/Util.h:33:36: note: Function 'compress' argument 2 names different: declaration 'nmemb' definition 'size'. abe-1.1.orig/src/Util.c:71:32: note: Function 'compress' argument 2 names different: declaration 'nmemb' definition 'size'. abe-1.1.orig/src/Util.c:139:34: style:inconclusive: Function 'decompress' argument 2 names different: declaration 'nmemb' definition 'size'. [funcArgNamesDifferent] abe-1.1.orig/src/Util.h:34:38: note: Function 'decompress' argument 2 names different: declaration 'nmemb' definition 'size'. abe-1.1.orig/src/Util.c:139:34: note: Function 'decompress' argument 2 names different: declaration 'nmemb' definition 'size'. abe-1.1.orig/src/Util.c:26:21: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Util.c:39:23: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Util.c:39:37: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Util.c:55:25: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Util.c:55:39: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Util.c:71:19: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Util.c:245:26: style: Parameter 'rect' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Util.c:254:25: style: Parameter 'rect' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Util.c:143:26: style: Variable 'r' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Util.c:143:44: style: Variable 'n' is assigned a value that is never used. [unreadVariable] abe-1.1.orig/src/Image.c:28:35: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] abe-1.1.orig/src/Image.c:254:20: style: Parameter 's' can be declared as pointer to const [constParameterPointer] diff: 2.13.0 abe-1.1.orig/src/Directories.c:16:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_FAILURE [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Directories.c:36:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Editor.c:427:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Editor.c:471:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_HWSURFACE [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Editor.c:47:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Font.c:63:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] head abe-1.1.orig/src/Game.c:102:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Game.c:14:41: warning: Uninitialized variable: path [uninitvar] abe-1.1.orig/src/Game.c:99:16: note: Calling function 'path_sprintf', 1st argument 'path' value is abe-1.1.orig/src/Game.c:14:41: note: Uninitialized variable: path head abe-1.1.orig/src/Game.c:216:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Game.c:402:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Game.c:468:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Game.c:538:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Game.c:682:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Game.c:721:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Game.c:744:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Image.c:327:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Image.c:416:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_RLEACCEL [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Main.c:86:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_DOUBLEBUF [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:1003:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:1061:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:1118:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:1248:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint16 [valueFlowBailoutIncompleteVar] 2.13.0 abe-1.1.orig/src/Map.c:1264:38: style:inconclusive: Boolean expression '!hw_surface' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] 2.13.0 abe-1.1.orig/src/Map.c:1297:36: style:inconclusive: Boolean expression '!hw_surface' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] 2.13.0 abe-1.1.orig/src/Map.c:1319:36: style:inconclusive: Boolean expression '!hw_surface' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] head abe-1.1.orig/src/Map.c:1405:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:1475:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:1522:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:160:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:226:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:287:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:356:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:437:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Map.c:827:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/MapIO.c:148:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/MapIO.c:207:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint16 [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/MapIO.c:252:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/MapIO.c:77:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Menu.c:244:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Menu.c:323:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_KEYDOWN [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:13:34: style: Parameter 'live' can be declared as pointer to const. However it seems that 'defaultMoveMonster' is a callback function, if 'live' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Monster.c:694:31: note: You might need to cast the function pointer here abe-1.1.orig/src/Monster.c:13:34: note: Parameter 'live' can be declared as pointer to const head abe-1.1.orig/src/Monster.c:164:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:26:35: style: Parameter 'live' can be declared as pointer to const. However it seems that 'defaultBreedMonster' is a callback function, if 'live' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Monster.c:703:32: note: You might need to cast the function pointer here abe-1.1.orig/src/Monster.c:26:35: note: Parameter 'live' can be declared as pointer to const head abe-1.1.orig/src/Monster.c:26:52: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'defaultBreedMonster' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] abe-1.1.orig/src/Monster.c:703:32: note: You might need to cast the function pointer here abe-1.1.orig/src/Monster.c:26:52: note: Parameter 'pos' can be declared as pointer to const head abe-1.1.orig/src/Monster.c:277:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:308:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:383:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:444:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:484:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:519:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:596:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:656:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:666:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:857:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:873:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:906:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:944:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Monster.c:993:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Splash.c:101:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Splash.c:125:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Util.c:148:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint16 [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Util.c:212:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_HWSURFACE [valueFlowBailoutIncompleteVar] head abe-1.1.orig/src/Util.c:279:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] DONE