2024-03-25 20:35 ftp://ftp.de.debian.org/debian/pool/main/s/spacezero/spacezero_0.80.06.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=gtk --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j5 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.13.0 head-info: d8e4914 (2024-03-25 20:39:31 +0100) count: 608 401 elapsed-time: 11.4 12.7 head-timing-info: old-timing-info: head results: spacezero/src/comm.c:126:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFFERSIZE [valueFlowBailoutIncompleteVar] spacezero/src/comm.c:174:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] spacezero/src/comm.c:205:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFFERSIZE [valueFlowBailoutIncompleteVar] spacezero/src/comm.c:227:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFFERSIZE [valueFlowBailoutIncompleteVar] spacezero/src/comm.c:269:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/comm.c:357:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/data.c:56:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntList [valueFlowBailoutIncompleteVar] spacezero/src/data.c:136:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntList [valueFlowBailoutIncompleteVar] spacezero/src/data.c:160:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntList [valueFlowBailoutIncompleteVar] spacezero/src/data.c:227:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntList [valueFlowBailoutIncompleteVar] spacezero/src/data.c:339:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NINDEXILIST [valueFlowBailoutIncompleteVar] spacezero/src/data.c:367:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NINDEXILIST [valueFlowBailoutIncompleteVar] spacezero/src/data.c:387:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NINDEXILIST [valueFlowBailoutIncompleteVar] spacezero/src/data.c:410:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntTree [valueFlowBailoutIncompleteVar] spacezero/src/data.c:501:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntTree [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:53:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:62:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gold [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:65:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:81:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:89:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GET [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:93:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SET [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:110:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:119:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GET [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:123:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SET [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:131:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable control [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:228:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ULX [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:370:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/functions.c:361:37: style: Parameter 'filter' can be declared as pointer to const [constParameterPointer] spacezero/src/data.c:134:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] spacezero/src/data.c:167:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] spacezero/src/data.c:502:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] spacezero/src/comm.c:53:16: style: The if condition is the same as the previous if condition [duplicateCondition] spacezero/src/comm.c:50:14: note: First condition spacezero/src/comm.c:53:16: note: Second condition spacezero/src/comm.c:143:16: style: The if condition is the same as the previous if condition [duplicateCondition] spacezero/src/comm.c:140:14: note: First condition spacezero/src/comm.c:143:16: note: Second condition spacezero/src/comm.c:242:6: style: Variable 'buf' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/comm.c:234:6: note: buf is assigned spacezero/src/comm.c:242:6: note: buf is overwritten spacezero/src/data.c:244:9: style: Local variable 'i' shadows outer variable [shadowVariable] spacezero/src/data.c:223:7: note: Shadowed declaration spacezero/src/data.c:244:9: note: Shadow variable spacezero/src/data.c:95:33: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] spacezero/src/data.c:116:34: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] spacezero/src/data.c:173:44: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] spacezero/src/comm.c:84:9: style: Variable 'c' can be declared as pointer to const [constVariablePointer] spacezero/src/data.c:191:34: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] spacezero/src/comm.c:297:39: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] spacezero/src/data.c:330:19: style: Variable 'list' can be declared as pointer to const [constVariablePointer] spacezero/src/data.c:377:19: style: Variable 'list' can be declared as pointer to const [constVariablePointer] spacezero/src/comm.c:87:4: style: Variable 'c' is assigned a value that is never used. [unreadVariable] spacezero/src/data.c:134:9: style: Variable 'list' is assigned a value that is never used. [unreadVariable] spacezero/src/help.c:45:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] spacezero/src/help.c:72:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARG_h [valueFlowBailoutIncompleteVar] spacezero/src/help.c:455:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] spacezero/src/help.c:582:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINNUMPLANETS [valueFlowBailoutIncompleteVar] spacezero/src/help.c:620:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] spacezero/src/help.c:645:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WIDTH [valueFlowBailoutIncompleteVar] spacezero/src/save.c:74:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] spacezero/src/save.c:297:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] spacezero/src/save.c:908:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJUNMOD [valueFlowBailoutIncompleteVar] spacezero/src/save.c:1055:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJUNMOD [valueFlowBailoutIncompleteVar] spacezero/src/save.c:1198:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Segment [valueFlowBailoutIncompleteVar] spacezero/src/save.c:1300:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:115:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:450:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:550:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADD [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:904:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GdkColor [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:988:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINTTL [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:1413:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUMSTARS [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:1494:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERRAIN [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:1543:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:1656:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:1708:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:2214:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:2434:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLIENT [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:2441:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLIENT [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:2477:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUMFONTNAMES [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:2525:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:2620:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUMPLANETS [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:2672:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:2895:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:3028:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GET [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:3083:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:3125:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:3236:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable playername [valueFlowBailoutIncompleteVar] spacezero/src/help.c:650:3: warning:inconclusive: The buffer 'str0' may not be null-terminated after the call to strncpy(). [terminateStrncpy] spacezero/src/help.c:36:21: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] spacezero/src/help.c:60:30: style: Parameter 'argv' can be declared as const array [constParameter] spacezero/src/help.c:60:66: style: Parameter 'optfile' can be declared as pointer to const [constParameterPointer] spacezero/src/help.c:434:21: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] spacezero/src/help.c:434:35: style: Parameter 'cad' can be declared as const array [constParameter] spacezero/src/help.c:448:18: style: Parameter 'ver' can be declared as pointer to const [constParameterPointer] spacezero/src/help.c:448:28: style: Parameter 'l_rev' can be declared as pointer to const [constParameterPointer] spacezero/src/help.c:616:21: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] spacezero/src/help.c:629:19: style: Parameter 'geom' can be declared as pointer to const [constParameterPointer] spacezero/src/help.c:83:11: style: Variable 'narg' is assigned a value that is never used. [unreadVariable] spacezero/src/help.c:437:9: style: Variable 'status' is assigned a value that is never used. [unreadVariable] spacezero/src/objects.c:65:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Object [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:424:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ObjList [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:448:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOT0 [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:747:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJUNMOD [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:770:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:863:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:934:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:970:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Planet [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1155:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1181:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1229:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1249:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Object [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1314:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1342:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1390:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINTTL [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1491:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable obj [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1608:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable obj [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1775:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ObjList [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1789:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1803:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1830:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Segment [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1851:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Planet [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1880:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Planet [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1950:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECTORSIZE [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2048:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2116:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TextMessageList [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2159:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TextList [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2187:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TextList [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2250:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECTORSIZE [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2275:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECTORSIZE [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2292:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUMWEAPONS [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2349:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SZ_OBJNULL [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2454:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2498:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2531:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2565:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2627:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2696:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ObjList [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2782:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2875:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:2959:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:3006:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:3050:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:3125:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable points [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:3221:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:3298:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:3435:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:3463:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RADAR_RANGE [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:3540:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/shell.c:55:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] spacezero/src/shell.c:132:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/shell.c:444:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/shell.c:808:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/shell.c:919:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/shell.c:371:8: warning:inconclusive: The buffer 'par' may not be null-terminated after the call to strncpy(). [terminateStrncpy] spacezero/src/shell.c:408:5: warning:inconclusive: The buffer 'lastpar' may not be null-terminated after the call to strncpy(). [terminateStrncpy] spacezero/src/shell.c:399:11: style: Condition '*pcv!=NULL' is always true [knownConditionTrueFalse] spacezero/src/shell.c:960:20: style: Parameter 'cad' can be declared as pointer to const [constParameterPointer] spacezero/src/save.c:912:3: warning: %hd in format string (no. 20) requires 'short' but the argument type is 'signed int'. [invalidPrintfArgType_sint] spacezero/src/save.c:300:6: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] spacezero/src/save.c:579:8: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] spacezero/src/save.c:1336:6: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] spacezero/src/save.c:59:42: style: Parameter 'nom' can be declared as pointer to const [constParameterPointer] spacezero/src/save.c:70:19: style: Variable 'ks' can be declared as pointer to const [constVariablePointer] spacezero/src/save.c:70:23: style: Variable 'kps' can be declared as pointer to const [constVariablePointer] spacezero/src/save.c:264:20: style: Parameter 'nom' can be declared as pointer to const [constParameterPointer] spacezero/src/save.c:269:27: style: Variable 'obj1' can be declared as pointer to const [constVariablePointer] spacezero/src/save.c:1006:36: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/save.c:1011:18: style: Variable 'planet' can be declared as pointer to const [constVariablePointer] spacezero/src/save.c:1012:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] spacezero/src/save.c:1293:17: style: Variable 'ord' can be declared as pointer to const [constVariablePointer] spacezero/src/save.c:1365:25: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/save.c:1371:21: style: Variable 'lo' can be declared as pointer to const [constVariablePointer] spacezero/src/save.c:1454:40: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/save.c:1455:22: style: Variable 'pinfo' can be declared as pointer to const [constVariablePointer] spacezero/src/save.c:217:11: style: Variable 'ccdata' is assigned a value that is never used. [unreadVariable] spacezero/src/sound.c:60:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/sound.c:91:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] spacezero/src/sound.c:210:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_SOURCES [valueFlowBailoutIncompleteVar] spacezero/src/sound.c:251:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MUSIC [valueFlowBailoutIncompleteVar] spacezero/src/sound.c:379:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_SOURCES [valueFlowBailoutIncompleteVar] spacezero/src/sound.c:397:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_BUFFERS [valueFlowBailoutIncompleteVar] spacezero/src/sound.c:437:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSTOP [valueFlowBailoutIncompleteVar] spacezero/src/sound.c:486:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPLAY [valueFlowBailoutIncompleteVar] spacezero/src/sound.c:544:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_SOURCES [valueFlowBailoutIncompleteVar] spacezero/src/sound.c:295:12: style: Condition 'data!=NULL' is always true [knownConditionTrueFalse] spacezero/src/sound.c:440:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] spacezero/src/sound.c:76:9: style: Variable 'datadir' can be declared as pointer to const [constVariablePointer] spacezero/src/sound.c:77:9: style: Variable 'fp' can be declared as pointer to const [constVariablePointer] spacezero/src/sound.c:99:9: style: Variable 'fp' is assigned a value that is never used. [unreadVariable] spacezero/src/sound.c:109:11: style: Variable 'fp' is assigned a value that is never used. [unreadVariable] spacezero/src/sound.c:393:9: style: Variable 'sw' is assigned a value that is never used. [unreadVariable] spacezero/src/sound.c:429:15: style: Variable 'bufferid' is assigned a value that is never used. [unreadVariable] spacezero/src/sound.c:430:15: style: Variable 'sourceid' is assigned a value that is never used. [unreadVariable] spacezero/src/sound.c:431:9: style: Variable 'sw' is assigned a value that is never used. [unreadVariable] spacezero/src/spacecomm.c:105:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:384:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:489:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:624:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:715:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:1046:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDEND [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:1551:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:1566:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:1616:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Order [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:1661:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCAL [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2011:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2044:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2143:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJDEAD [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2246:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2446:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2564:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2707:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2867:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2901:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2948:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Global [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:2971:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PlayerAll [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:3021:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PlayerMod [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:3054:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Order [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:3081:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/spacecomm.c:3116:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/objects.c:1817:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] spacezero/src/objects.c:1834:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] spacezero/src/objects.c:2700:14: style: Condition 'hl->next!=NULL' is always false [knownConditionTrueFalse] spacezero/src/objects.c:2689:17: note: Assuming that condition 'hl->next!=NULL' is not redundant spacezero/src/objects.c:2700:14: note: Condition 'hl->next!=NULL' is always false spacezero/src/objects.c:3421:11: style: Condition 'ls!=NULL' is always false [knownConditionTrueFalse] spacezero/src/objects.c:3414:11: note: Assuming that condition 'ls!=NULL' is not redundant spacezero/src/objects.c:3421:11: note: Condition 'ls!=NULL' is always false spacezero/src/objects.c:412:3: error: Memory leak: obj.cdata [memleak] spacezero/src/objects.c:876:6: warning: Either the condition 'ls!=NULL' is redundant or there is possible null pointer dereference: ls. [nullPointerRedundantCheck] spacezero/src/objects.c:872:34: note: Assuming that condition 'ls!=NULL' is not redundant spacezero/src/objects.c:876:6: note: Null pointer dereference spacezero/src/objects.c:133:14: style: Variable 'obj->player' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/objects.c:128:16: note: obj->player is assigned spacezero/src/objects.c:133:14: note: obj->player is overwritten spacezero/src/objects.c:999:4: style: Variable 'y' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/objects.c:990:4: note: y is assigned spacezero/src/objects.c:999:4: note: y is overwritten spacezero/src/objects.c:665:35: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:671:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:735:38: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:742:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:854:51: style: Parameter 'obj2remove' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:860:11: style: Variable 'obj' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:920:45: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:927:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:1089:51: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1091:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:1121:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:1169:44: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1199:38: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1203:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:1217:44: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1224:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:1247:37: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1253:39: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1297:44: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1354:40: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1360:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:1462:37: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1595:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:1781:47: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1839:35: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:1841:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:1876:18: style: Variable 'planet2' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2084:64: style: Parameter 'cad' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2146:50: style: Parameter 'cad' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2195:36: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2196:20: style: Variable 'lh' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2205:36: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2210:20: style: Variable 'lh' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2219:34: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2225:20: style: Variable 'lh' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2290:14: style: Variable 'ship_price' can be declared as const array [constVariable] spacezero/src/objects.c:2291:14: style: Variable 'engine_price' can be declared as const array [constVariable] spacezero/src/objects.c:2292:14: style: Variable 'weapon_price' can be declared as const array [constVariable] spacezero/src/objects.c:2345:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2433:36: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2433:47: style: Parameter 'cv0' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2477:36: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2485:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2514:39: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2545:42: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2552:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2605:42: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2663:38: style: Parameter 'hlist' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2668:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2729:37: style: Parameter 'lhobjs' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2729:52: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2739:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2859:46: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2868:11: style: Variable 'obj' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:2945:45: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:2993:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:3034:45: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3039:19: style: Variable 'ls1' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:3039:24: style: Variable 'ls2' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:3207:23: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3212:19: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3362:39: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3383:39: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3389:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:3404:29: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3404:53: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3425:25: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3425:40: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3432:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:3447:36: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:3451:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:3452:11: style: Variable 'obj' can be declared as pointer to const [constVariablePointer] spacezero/src/objects.c:3531:20: style: Parameter 'cell' can be declared as pointer to const [constParameterPointer] spacezero/src/objects.c:771:9: style: Variable 'sw' is assigned a value that is never used. [unreadVariable] spacezero/src/objects.c:772:10: style: Variable 'swx' is assigned a value that is never used. [unreadVariable] spacezero/src/objects.c:880:9: style: Variable 'ls' is assigned a value that is never used. [unreadVariable] spacezero/src/objects.c:885:9: style: Variable 'ls' is assigned a value that is never used. [unreadVariable] spacezero/src/objects.c:886:10: style: Variable 'ls0' is assigned a value that is never used. [unreadVariable] spacezero/src/objects.c:1926:11: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] spacezero/src/objects.c:2872:7: style: Unused variable: value0 [unusedVariable] spacezero/src/objects.c:3043:9: style: Variable 'sw' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:166:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAVEDIR [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:893:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:1456:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cv [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:1733:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:1990:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASTEROID [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:2085:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:2695:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:2805:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LX [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:2833:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:2892:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:2961:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GRAVITATION_RANGE2 [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3046:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3096:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3194:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3251:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3310:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OTSENDOBJS [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3356:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3361:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3389:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3617:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nplanets [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3722:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJDEAD [valueFlowBailoutIncompleteVar] spacezero/src/graphics.c:934:3: warning:inconclusive: The buffer 'point' may not be null-terminated after the call to strncpy(). [terminateStrncpy] spacezero/src/graphics.c:2471:3: warning:inconclusive: The buffer 'fontname' may not be null-terminated after the call to strncpy(). [terminateStrncpy] spacezero/src/graphics.c:2478:7: warning:inconclusive: The buffer 'fontname' may not be null-terminated after the call to strncpy(). [terminateStrncpy] spacezero/src/graphics.c:121:8: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] spacezero/src/graphics.c:152:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:157:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:171:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:184:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:191:9: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] spacezero/src/graphics.c:192:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] spacezero/src/graphics.c:193:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] spacezero/src/graphics.c:194:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] spacezero/src/graphics.c:195:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] spacezero/src/graphics.c:196:9: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] spacezero/src/graphics.c:209:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:215:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:220:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:257:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:262:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:267:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:278:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:283:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:288:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:299:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:337:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:340:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:342:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:345:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:348:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:351:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:353:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:357:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:359:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:361:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:2835:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] spacezero/src/graphics.c:1542:7: style: Condition 'n<0' is always false [knownConditionTrueFalse] spacezero/src/graphics.c:1540:5: note: Assignment 'n=0', assigned value is 0 spacezero/src/graphics.c:1542:7: note: Condition 'n<0' is always false spacezero/src/graphics.c:2219:10: style: Condition 'font!=NULL' is always true [knownConditionTrueFalse] spacezero/src/graphics.c:2685:10: style: Condition 'show==0' is always false [knownConditionTrueFalse] spacezero/src/graphics.c:2683:8: note: Assignment 'show=1', assigned value is 1 spacezero/src/graphics.c:2685:10: note: Condition 'show==0' is always false spacezero/src/graphics.c:2746:10: style: Condition 'show==1' is always true [knownConditionTrueFalse] spacezero/src/graphics.c:2683:8: note: Assignment 'show=1', assigned value is 1 spacezero/src/graphics.c:2746:10: note: Condition 'show==1' is always true spacezero/src/graphics.c:1255:9: style: Variable 'x0' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:1254:9: note: x0 is assigned spacezero/src/graphics.c:1255:9: note: x0 is overwritten spacezero/src/graphics.c:1434:10: style: Variable 'col' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:1433:10: note: col is assigned spacezero/src/graphics.c:1434:10: note: col is overwritten spacezero/src/graphics.c:1604:9: style: Variable 'gc' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:1603:9: note: gc is assigned spacezero/src/graphics.c:1604:9: note: gc is overwritten spacezero/src/graphics.c:2082:4: style: Variable 'y' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2066:4: note: y is assigned spacezero/src/graphics.c:2082:4: note: y is overwritten spacezero/src/graphics.c:2082:4: style: Variable 'y' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2078:6: note: y is assigned spacezero/src/graphics.c:2082:4: note: y is overwritten spacezero/src/graphics.c:2092:13: style: Variable 'gc' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2081:5: note: gc is assigned spacezero/src/graphics.c:2092:13: note: gc is overwritten spacezero/src/graphics.c:2683:7: style: Variable 'show' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2679:11: note: show is assigned spacezero/src/graphics.c:2683:7: note: show is overwritten spacezero/src/graphics.c:2696:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2690:10: note: state is assigned spacezero/src/graphics.c:2696:10: note: state is overwritten spacezero/src/graphics.c:2702:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2696:10: note: state is assigned spacezero/src/graphics.c:2702:10: note: state is overwritten spacezero/src/graphics.c:2730:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2702:10: note: state is assigned spacezero/src/graphics.c:2730:10: note: state is overwritten spacezero/src/graphics.c:2716:9: style: Variable 'text' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2709:9: note: text is assigned spacezero/src/graphics.c:2716:9: note: text is overwritten spacezero/src/graphics.c:2723:9: style: Variable 'text' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2716:9: note: text is assigned spacezero/src/graphics.c:2723:9: note: text is overwritten spacezero/src/graphics.c:2736:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2730:10: note: state is assigned spacezero/src/graphics.c:2736:10: note: state is overwritten spacezero/src/graphics.c:2743:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2736:10: note: state is assigned spacezero/src/graphics.c:2743:10: note: state is overwritten spacezero/src/graphics.c:2753:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2749:10: note: state is assigned spacezero/src/graphics.c:2753:10: note: state is overwritten spacezero/src/graphics.c:2757:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2753:10: note: state is assigned spacezero/src/graphics.c:2757:10: note: state is overwritten spacezero/src/graphics.c:2776:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2757:10: note: state is assigned spacezero/src/graphics.c:2776:10: note: state is overwritten spacezero/src/graphics.c:2767:9: style: Variable 'text' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2762:9: note: text is assigned spacezero/src/graphics.c:2767:9: note: text is overwritten spacezero/src/graphics.c:2772:9: style: Variable 'text' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2767:9: note: text is assigned spacezero/src/graphics.c:2772:9: note: text is overwritten spacezero/src/graphics.c:2780:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2776:10: note: state is assigned spacezero/src/graphics.c:2780:10: note: state is overwritten spacezero/src/graphics.c:2784:10: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:2780:10: note: state is assigned spacezero/src/graphics.c:2784:10: note: state is overwritten spacezero/src/graphics.c:3210:4: style: Variable 'y' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/graphics.c:3209:4: note: y is assigned spacezero/src/graphics.c:3210:4: note: y is overwritten spacezero/src/graphics.c:1187:8: style: The comparison 'sw == 0' is always true. [knownConditionTrueFalse] spacezero/src/graphics.c:1141:10: note: 'sw' is assigned value '0' here. spacezero/src/graphics.c:1187:8: note: The comparison 'sw == 0' is always true. spacezero/src/graphics.c:2654:3: style: Statements following 'return' will never be executed. [unreachableCode] spacezero/src/graphics.c:424:30: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'QuitGraphics' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:338:8: note: You might need to cast the function pointer here spacezero/src/graphics.c:424:30: note: Parameter 'widget' can be declared as pointer to const spacezero/src/graphics.c:424:46: style: Parameter 'gdata' can be declared as pointer to const. However it seems that 'QuitGraphics' is a callback function, if 'gdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:338:8: note: You might need to cast the function pointer here spacezero/src/graphics.c:424:46: note: Parameter 'gdata' can be declared as pointer to const spacezero/src/graphics.c:796:49: style: Parameter 'event' can be declared as pointer to const. However it seems that 'key_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:349:8: note: You might need to cast the function pointer here spacezero/src/graphics.c:796:49: note: Parameter 'event' can be declared as pointer to const spacezero/src/graphics.c:931:39: style: Parameter 'cad' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:939:52: style: Parameter 'lhc' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:939:87: style: Parameter 'cv' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:964:9: style: Variable 's' can be declared as const array [constVariable] spacezero/src/graphics.c:1183:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] spacezero/src/graphics.c:1479:57: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:1516:41: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:1516:65: style: Parameter 'lhc' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:1627:57: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:1949:80: style: Parameter 'player' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:2004:73: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:2039:76: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:2126:17: style: Variable 'ord' can be declared as pointer to const [constVariablePointer] spacezero/src/graphics.c:2446:25: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:2446:41: style: Parameter 'gdata' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:2460:26: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:2515:45: style: Parameter 'gdata' can be declared as pointer to const. However it seems that 'SaveOptions' is a callback function, if 'gdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:263:8: note: You might need to cast the function pointer here spacezero/src/graphics.c:2515:45: note: Parameter 'gdata' can be declared as pointer to const spacezero/src/graphics.c:2599:51: style: Parameter 'gdata' can be declared as pointer to const. However it seems that 'SetDefaultOptions' is a callback function, if 'gdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:258:8: note: You might need to cast the function pointer here spacezero/src/graphics.c:2599:51: note: Parameter 'gdata' can be declared as pointer to const spacezero/src/graphics.c:2651:30: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'PrintMessage' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:289:9: note: You might need to cast the function pointer here spacezero/src/graphics.c:2651:30: note: Parameter 'widget' can be declared as pointer to const spacezero/src/graphics.c:2651:46: style: Parameter 'gdata' can be declared as pointer to const. However it seems that 'PrintMessage' is a callback function, if 'gdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:289:9: note: You might need to cast the function pointer here spacezero/src/graphics.c:2651:46: note: Parameter 'gdata' can be declared as pointer to const spacezero/src/graphics.c:2899:17: style: Variable 'ord' can be declared as pointer to const [constVariablePointer] spacezero/src/graphics.c:2903:18: style: Variable 'last_cv' can be declared as pointer to const [constVariablePointer] spacezero/src/graphics.c:3015:28: style: Parameter 'cv' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:3188:58: style: Parameter 'pl' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:3248:46: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:3260:66: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] spacezero/src/graphics.c:2548:11: style: Variable 'status' is assigned a value that is never used. [unreadVariable] spacezero/src/graphics.c:2551:11: style: Variable 'status' is assigned a value that is never used. [unreadVariable] spacezero/src/graphics.c:2723:9: style: Variable 'text' is assigned a value that is never used. [unreadVariable] spacezero/src/graphics.c:2743:10: style: Variable 'state' is assigned a value that is never used. [unreadVariable] spacezero/src/graphics.c:2772:9: style: Variable 'text' is assigned a value that is never used. [unreadVariable] spacezero/src/graphics.c:2784:10: style: Variable 'state' is assigned a value that is never used. [unreadVariable] spacezero/src/graphics.c:2898:12: style: Variable 'mode' is assigned a value that is never used. [unreadVariable] spacezero/src/graphics.c:2907:12: style: Variable 'textw' is assigned a value that is never used. [unreadVariable] spacezero/src/spacecomm.c:141:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] spacezero/src/spacecomm.c:213:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] spacezero/src/spacecomm.c:2604:13: style: Variable 'nbytes' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/spacecomm.c:2595:13: note: nbytes is assigned spacezero/src/spacecomm.c:2604:13: note: nbytes is overwritten spacezero/src/spacecomm.c:1169:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] spacezero/src/spacecomm.c:358:37: style: Parameter 'args' can be declared as pointer to const. However it seems that 'CommServer' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/spacecomm.c:305:44: note: You might need to cast the function pointer here spacezero/src/spacecomm.c:358:37: note: Parameter 'args' can be declared as pointer to const spacezero/src/spacecomm.c:365:9: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] spacezero/src/spacecomm.c:462:38: style: Parameter 'args' can be declared as pointer to const. However it seems that 'CommClient' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/spacecomm.c:345:44: note: You might need to cast the function pointer here spacezero/src/spacecomm.c:462:38: note: Parameter 'args' can be declared as pointer to const spacezero/src/spacecomm.c:467:9: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] spacezero/src/spacecomm.c:601:36: style: Parameter 'mess' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:702:25: style: Variable 'header' can be declared as pointer to const [constVariablePointer] spacezero/src/spacecomm.c:710:23: style: Variable 'text' can be declared as pointer to const [constVariablePointer] spacezero/src/spacecomm.c:1027:17: style: Variable 'objt' can be declared as pointer to const [constVariablePointer] spacezero/src/spacecomm.c:1037:9: style: Variable 'buf0' can be declared as pointer to const [constVariablePointer] spacezero/src/spacecomm.c:1548:28: style: Parameter 'mess' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:1995:40: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:2029:42: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:2035:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/spacecomm.c:2125:43: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:2418:33: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:2686:40: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:2858:40: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:2898:73: style: Parameter 'messh' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:2967:62: style: Parameter 'player' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:3016:65: style: Parameter 'player' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:3051:60: style: Parameter 'order' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:3072:47: style: Parameter 'i' can be declared as pointer to const [constParameterPointer] spacezero/src/spacecomm.c:265:14: style: Variable 'gkplanets' is assigned a value that is never used. [unreadVariable] spacezero/src/spacecomm.c:332:9: style: Variable 'npcs' is assigned a value that is never used. [unreadVariable] spacezero/src/spacecomm.c:479:6: style: Variable 'buf' is assigned a value that is never used. [unreadVariable] spacezero/src/spacecomm.c:902:11: style: Variable 'nbytes' is assigned a value that is never used. [unreadVariable] spacezero/src/spacecomm.c:981:11: style: Variable 'nbytes' is assigned a value that is never used. [unreadVariable] spacezero/src/spacecomm.c:2553:13: style: Variable 'nbytes' is assigned a value that is never used. [unreadVariable] spacezero/src/spacecomm.c:2590:13: style: Variable 'nbytes' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:60:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:623:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LANDZONE [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:698:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:768:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:955:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:1128:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:1193:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:1253:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:1325:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:1383:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:1535:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gold [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:1887:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LANDED [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:1934:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:1975:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:2262:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:2514:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:2574:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:2900:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ListOrder [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:2994:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3049:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ListOrder [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3147:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPRIORITY [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3169:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP0 [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3205:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3229:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3299:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3402:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3457:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACRO [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3634:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PlanetInfo [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3662:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:3748:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLAYERSTRATDEFAULT [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:4020:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:4132:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PlanetInfo [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:4170:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:4212:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:4288:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:4340:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] spacezero/src/ai.c:4549:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SZ_OK [valueFlowBailoutIncompleteVar] spacezero/src/spacezero.c:3326:13: warning: Either the condition '(fd=open(savefile,O_RDONLY))==-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] spacezero/src/spacezero.c:3320:38: note: Assuming that condition '(fd=open(savefile,O_RDONLY))==-1' is not redundant spacezero/src/spacezero.c:3326:13: note: Invalid argument spacezero/src/spacezero.c:2474:17: style: Condition 'r2<4*radio2&&0' is always false [knownConditionTrueFalse] spacezero/src/spacezero.c:185:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] spacezero/src/spacezero.c:1922:8: style: Local variable 'factor' shadows outer variable [shadowVariable] spacezero/src/spacezero.c:1720:11: note: Shadowed declaration spacezero/src/spacezero.c:1922:8: note: Shadow variable spacezero/src/spacezero.c:2533:12: style: Local variable 'text' shadows outer variable [shadowVariable] spacezero/src/spacezero.c:2085:8: note: Shadowed declaration spacezero/src/spacezero.c:2533:12: note: Shadow variable spacezero/src/spacezero.c:2067:36: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/spacezero.c:2073:19: style: Variable 'ls1' can be declared as pointer to const [constVariablePointer] spacezero/src/spacezero.c:2073:24: style: Variable 'ls2' can be declared as pointer to const [constVariablePointer] spacezero/src/spacezero.c:2075:21: style: Variable 'shot' can be declared as pointer to const [constVariablePointer] spacezero/src/spacezero.c:2617:22: style: Variable 'ship_enemy' can be declared as pointer to const [constVariablePointer] spacezero/src/spacezero.c:2824:45: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/spacezero.c:2829:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/spacezero.c:3089:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] spacezero/src/spacezero.c:3156:21: style: Parameter 'cad' can be declared as pointer to const [constParameterPointer] spacezero/src/spacezero.c:3164:21: style: Variable 'lo' can be declared as pointer to const [constVariablePointer] spacezero/src/spacezero.c:3350:42: style: Parameter 'info' can be declared as pointer to const. However it seems that 'signal_handler' is a callback function, if 'info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/spacezero.c:379:19: note: You might need to cast the function pointer here spacezero/src/spacezero.c:3350:42: note: Parameter 'info' can be declared as pointer to const spacezero/src/spacezero.c:3350:53: style: Parameter 'ignored' can be declared as pointer to const. However it seems that 'signal_handler' is a callback function, if 'ignored' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/spacezero.c:379:19: note: You might need to cast the function pointer here spacezero/src/spacezero.c:3350:53: note: Parameter 'ignored' can be declared as pointer to const spacezero/src/spacezero.c:3377:17: style: Variable 'gc' can be declared as pointer to const [constVariablePointer] spacezero/src/spacezero.c:3704:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/spacezero.c:277:5: style: Variable 'sw' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:403:7: style: Variable 'npcc' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:404:7: style: Variable 'npcs' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:866:12: style: Variable 'wininfo.x' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:867:12: style: Variable 'wininfo.y' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:869:17: style: Variable 'wininfo.height' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:871:12: style: Variable 'wingame.x' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:872:12: style: Variable 'wingame.y' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:873:16: style: Variable 'wingame.width' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:874:17: style: Variable 'wingame.height' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:1206:8: style: Variable 'n' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:1738:6: style: Variable 'U' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:1992:7: style: Variable 'proc' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:2001:6: style: Variable 'U' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:3168:8: style: Variable 'n' is assigned a value that is never used. [unreadVariable] spacezero/src/spacezero.c:3710:9: style: Variable 'sw' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:1177:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] spacezero/src/ai.c:1991:16: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] spacezero/src/ai.c:1987:14: note: outer condition: obj->gas>0.75*obj->gas_max spacezero/src/ai.c:1991:16: note: identical inner condition: obj->gas>0.75*obj->gas_max spacezero/src/ai.c:1804:23: style: Condition 'nplanet==NULL' is always true [knownConditionTrueFalse] spacezero/src/ai.c:1787:13: note: Assuming that condition 'nplanet!=NULL' is not redundant spacezero/src/ai.c:1804:23: note: Condition 'nplanet==NULL' is always true spacezero/src/ai.c:4206:28: style: Condition 'planet==NULL' is always false [knownConditionTrueFalse] spacezero/src/ai.c:127:11: style: Variable 'd2_enemy' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/ai.c:77:11: note: d2_enemy is assigned spacezero/src/ai.c:127:11: note: d2_enemy is overwritten spacezero/src/ai.c:926:7: style: Variable 'fa' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/ai.c:924:7: note: fa is assigned spacezero/src/ai.c:926:7: note: fa is overwritten spacezero/src/ai.c:3764:13: style: Variable 'strategy' is reassigned a value before the old one has been used. [redundantAssignment] spacezero/src/ai.c:3760:11: note: strategy is assigned spacezero/src/ai.c:3764:13: note: strategy is overwritten spacezero/src/ai.c:4086:3: style: Statements following 'return' will never be executed. [unreachableCode] spacezero/src/ai.c:182:10: style: Local variable 'a' shadows outer variable [shadowVariable] spacezero/src/ai.c:57:9: note: Shadowed declaration spacezero/src/ai.c:182:10: note: Shadow variable spacezero/src/ai.c:182:12: style: Local variable 'b' shadows outer variable [shadowVariable] spacezero/src/ai.c:57:11: note: Shadowed declaration spacezero/src/ai.c:182:12: note: Shadow variable spacezero/src/ai.c:201:10: style: Local variable 'i' shadows outer variable [shadowVariable] spacezero/src/ai.c:63:7: note: Shadowed declaration spacezero/src/ai.c:201:10: note: Shadow variable spacezero/src/ai.c:55:12: style: Variable 'segment' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:56:11: style: Variable 'ship_enemy' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:612:34: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:630:32: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:634:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:650:41: style: Parameter 'ord' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:1285:39: style: Parameter 'lhobjs' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:1285:61: style: Parameter 'player' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:1298:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:1379:22: style: Variable 'pinfo' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:1475:11: style: Variable 'nplanet' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:1476:17: style: Variable 'actord' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:1483:22: style: Variable 'pinfo1' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:1848:43: style: Parameter 'lhobjs' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:1872:46: style: Parameter 'lhobjs' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:1923:41: style: Parameter 'lhobjs' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:2498:9: style: Variable 'a' can be declared as const array [constVariable] spacezero/src/ai.c:2558:64: style: Parameter 'obj2' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:2836:19: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3017:29: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3041:40: style: Parameter 'order' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3081:24: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3087:21: style: Variable 'lo' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:3097:31: style: Parameter 'ord' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3275:34: style: Parameter 'lh' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3290:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:3362:37: style: Parameter 'lhobjs' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3362:64: style: Parameter 'lhkplanets' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3372:22: style: Variable 'pinfo' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:3440:33: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3451:17: style: Variable 'order' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:3525:29: style: Variable 'pinfolow' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:3571:36: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3608:39: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3609:22: style: Variable 'pinfo' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:3640:37: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3924:53: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3980:49: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3980:64: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3998:38: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:3998:53: style: Parameter 'planet1' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4075:41: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4075:56: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4101:31: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4101:46: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4108:22: style: Variable 'pinfo' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:4155:38: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4155:53: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4191:45: style: Parameter 'lhobjs' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4191:67: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4191:82: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4199:11: style: Variable 'planet' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:4272:51: style: Parameter 'lhobjs' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4272:73: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4272:88: style: Parameter 'planet' can be declared as pointer to const [constParameterPointer] spacezero/src/ai.c:4276:19: style: Variable 'ls' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:4279:17: style: Variable 'order' can be declared as pointer to const [constVariablePointer] spacezero/src/ai.c:767:10: style: Variable 'ang_min' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:768:10: style: Variable 'ang_max' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:829:15: style: Variable 'fvy' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:830:19: style: Variable 'fvy' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:1088:9: style: Variable 'swaccel' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:1095:9: style: Variable 'swaccel' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:1177:5: style: Variable 'v0' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:2774:8: style: Variable 'vx1' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:2775:8: style: Variable 'vy1' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:2985:10: style: Variable 'lom' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:3169:12: style: Variable 'stype' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:3208:6: style: Variable 'a' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:4413:25: style: Variable 'nf2a' is assigned a value that is never used. [unreadVariable] spacezero/src/ai.c:4551:21: style: Variable 'player.lastaction' is assigned a value that is never used. [unreadVariable] diff: head spacezero/src/ai.c:1128:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:1193:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:1253:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:1325:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:1383:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:1535:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gold [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:1887:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LANDED [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:1934:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:1975:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:2262:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:2514:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:2574:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:2900:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ListOrder [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:2994:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3049:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ListOrder [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3147:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPRIORITY [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3169:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP0 [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3205:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3229:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3299:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3402:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3451:17: style: Variable 'order' can be declared as pointer to const [constVariablePointer] head spacezero/src/ai.c:3457:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACRO [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3634:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PlanetInfo [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3662:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3748:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLAYERSTRATDEFAULT [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:3924:53: style: Parameter 'ccdata' can be declared as pointer to const [constParameterPointer] head spacezero/src/ai.c:4020:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:4132:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PlanetInfo [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:4170:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:4212:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:4279:17: style: Variable 'order' can be declared as pointer to const [constVariablePointer] head spacezero/src/ai.c:4288:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:4340:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable team [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:4549:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SZ_OK [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:623:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LANDZONE [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:698:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:768:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] head spacezero/src/ai.c:955:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/comm.c:174:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] head spacezero/src/comm.c:205:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFFERSIZE [valueFlowBailoutIncompleteVar] head spacezero/src/comm.c:227:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFFERSIZE [valueFlowBailoutIncompleteVar] head spacezero/src/comm.c:269:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/comm.c:357:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/data.c:136:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntList [valueFlowBailoutIncompleteVar] head spacezero/src/data.c:160:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntList [valueFlowBailoutIncompleteVar] head spacezero/src/data.c:227:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntList [valueFlowBailoutIncompleteVar] head spacezero/src/data.c:339:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NINDEXILIST [valueFlowBailoutIncompleteVar] head spacezero/src/data.c:367:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NINDEXILIST [valueFlowBailoutIncompleteVar] head spacezero/src/data.c:387:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NINDEXILIST [valueFlowBailoutIncompleteVar] head spacezero/src/data.c:410:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntTree [valueFlowBailoutIncompleteVar] head spacezero/src/data.c:501:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IntTree [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:110:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:119:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GET [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:123:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SET [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:131:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable control [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:228:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ULX [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:370:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:62:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gold [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:65:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:81:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:89:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GET [valueFlowBailoutIncompleteVar] head spacezero/src/functions.c:93:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SET [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:1413:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUMSTARS [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:1494:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERRAIN [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:1543:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:1656:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:1708:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:2214:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:2434:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLIENT [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:2441:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLIENT [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:2446:25: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] head spacezero/src/graphics.c:2446:41: style: Parameter 'gdata' can be declared as pointer to const [constParameterPointer] head spacezero/src/graphics.c:2477:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUMFONTNAMES [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:2525:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:2620:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUMPLANETS [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:2651:30: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'PrintMessage' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:289:9: note: You might need to cast the function pointer here spacezero/src/graphics.c:2651:30: note: Parameter 'widget' can be declared as pointer to const head spacezero/src/graphics.c:2672:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.13.0 spacezero/src/graphics.c:2788:6: style: Condition 'sw' is always false [knownConditionTrueFalse] spacezero/src/graphics.c:2667:10: note: Assignment 'sw=0', assigned value is 0 spacezero/src/graphics.c:2671:37: note: Assuming condition is false spacezero/src/graphics.c:2788:6: note: Condition 'sw' is always false head spacezero/src/graphics.c:2895:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:3028:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GET [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:3083:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:3125:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:3236:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable playername [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:424:30: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'QuitGraphics' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:338:8: note: You might need to cast the function pointer here spacezero/src/graphics.c:424:30: note: Parameter 'widget' can be declared as pointer to const head spacezero/src/graphics.c:424:46: style: Parameter 'gdata' can be declared as pointer to const. However it seems that 'QuitGraphics' is a callback function, if 'gdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/graphics.c:338:8: note: You might need to cast the function pointer here spacezero/src/graphics.c:424:46: note: Parameter 'gdata' can be declared as pointer to const head spacezero/src/graphics.c:450:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:550:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADD [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:904:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GdkColor [valueFlowBailoutIncompleteVar] head spacezero/src/graphics.c:988:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINTTL [valueFlowBailoutIncompleteVar] head spacezero/src/help.c:455:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head spacezero/src/help.c:582:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINNUMPLANETS [valueFlowBailoutIncompleteVar] head spacezero/src/help.c:620:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] head spacezero/src/help.c:645:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WIDTH [valueFlowBailoutIncompleteVar] head spacezero/src/help.c:72:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARG_h [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1155:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1181:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1229:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1249:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Object [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1314:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1342:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1390:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINTTL [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1491:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable obj [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1608:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable obj [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1775:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ObjList [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1789:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1803:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1830:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Segment [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1851:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Planet [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1880:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Planet [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:1950:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECTORSIZE [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2048:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2116:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TextMessageList [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2159:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TextList [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2187:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TextList [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2250:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECTORSIZE [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2275:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECTORSIZE [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2292:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUMWEAPONS [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2349:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SZ_OBJNULL [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2454:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2498:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2531:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2565:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2627:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2696:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ObjList [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2782:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2875:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:2959:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:3006:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:3050:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:3125:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable points [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:3221:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:3298:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:3435:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:3463:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RADAR_RANGE [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:3540:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:424:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ObjList [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:448:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOT0 [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:747:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJUNMOD [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:770:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:863:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:934:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHIP [valueFlowBailoutIncompleteVar] head spacezero/src/objects.c:970:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Planet [valueFlowBailoutIncompleteVar] head spacezero/src/save.c:1012:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] head spacezero/src/save.c:1055:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJUNMOD [valueFlowBailoutIncompleteVar] head spacezero/src/save.c:1198:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Segment [valueFlowBailoutIncompleteVar] head spacezero/src/save.c:1300:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/save.c:297:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head spacezero/src/save.c:908:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJUNMOD [valueFlowBailoutIncompleteVar] head spacezero/src/shell.c:132:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/shell.c:444:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/shell.c:808:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/shell.c:919:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/sound.c:210:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_SOURCES [valueFlowBailoutIncompleteVar] head spacezero/src/sound.c:251:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MUSIC [valueFlowBailoutIncompleteVar] head spacezero/src/sound.c:379:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_SOURCES [valueFlowBailoutIncompleteVar] head spacezero/src/sound.c:397:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_BUFFERS [valueFlowBailoutIncompleteVar] head spacezero/src/sound.c:437:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSTOP [valueFlowBailoutIncompleteVar] head spacezero/src/sound.c:486:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPLAY [valueFlowBailoutIncompleteVar] head spacezero/src/sound.c:544:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_SOURCES [valueFlowBailoutIncompleteVar] head spacezero/src/sound.c:91:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:1046:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDEND [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:1551:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:1566:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:1616:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Order [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:1661:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCAL [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2011:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2044:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2143:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJDEAD [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2246:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2446:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2564:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2707:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2867:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2901:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2948:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Global [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:2971:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PlayerAll [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:3021:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PlayerMod [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:3054:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Order [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:3081:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:3116:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:384:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:489:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:624:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] head spacezero/src/spacecomm.c:715:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MessageHeader [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:1456:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cv [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:1733:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:1990:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASTEROID [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:2085:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:2474:17: style: Condition 'r2<4*radio2&&0' is always false [knownConditionTrueFalse] head spacezero/src/spacezero.c:2695:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:2805:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LX [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:2833:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:2892:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:2961:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GRAVITATION_RANGE2 [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3046:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3096:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3194:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3251:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLANET [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3310:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OTSENDOBJS [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3350:42: style: Parameter 'info' can be declared as pointer to const. However it seems that 'signal_handler' is a callback function, if 'info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/spacezero.c:379:19: note: You might need to cast the function pointer here spacezero/src/spacezero.c:3350:42: note: Parameter 'info' can be declared as pointer to const head spacezero/src/spacezero.c:3350:53: style: Parameter 'ignored' can be declared as pointer to const. However it seems that 'signal_handler' is a callback function, if 'ignored' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacezero/src/spacezero.c:379:19: note: You might need to cast the function pointer here spacezero/src/spacezero.c:3350:53: note: Parameter 'ignored' can be declared as pointer to const head spacezero/src/spacezero.c:3356:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3361:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3377:17: style: Variable 'gc' can be declared as pointer to const [constVariablePointer] head spacezero/src/spacezero.c:3389:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEXTMENMAXLEN [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3617:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nplanets [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:3722:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENDOBJDEAD [valueFlowBailoutIncompleteVar] head spacezero/src/spacezero.c:893:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] DONE