2025-05-05 11:48 ftp://ftp.de.debian.org/debian/pool/main/l/lincity/lincity_1.13.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: fcc0493 (2025-05-05 13:08:11 +0200) count: 254 252 elapsed-time: 2.0 1.8 head-timing-info: old-timing-info: head results: lincity-1.13.1/lcconfig.h:22:0: error: #error Int32 is not defined. [preprocessorErrorDirective] lincity-1.13.1/lcconfig.h:22:2: error: #error Int32 is not defined. [preprocessorErrorDirective] lincity-1.13.1/intl/dcgettext.c:48:18: style:inconclusive: Function 'libintl_dcgettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:214:32: note: Function 'libintl_dcgettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dcgettext.c:48:18: note: Function 'libintl_dcgettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dcgettext.c:49:18: style:inconclusive: Function 'libintl_dcgettext' argument 2 names different: declaration '__msgid' definition 'msgid'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:214:32: note: Function 'libintl_dcgettext' argument 2 names different: declaration '__msgid' definition 'msgid'. lincity-1.13.1/intl/dcgettext.c:49:18: note: Function 'libintl_dcgettext' argument 2 names different: declaration '__msgid' definition 'msgid'. lincity-1.13.1/intl/dcgettext.c:50:10: style:inconclusive: Function 'libintl_dcgettext' argument 3 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:214:32: note: Function 'libintl_dcgettext' argument 3 names different: declaration '__category' definition 'category'. lincity-1.13.1/intl/dcgettext.c:50:10: note: Function 'libintl_dcgettext' argument 3 names different: declaration '__category' definition 'category'. lincity-1.13.1/intl/bindtextdom.c:228:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] lincity-1.13.1/intl/eval-plural.h:58:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lor [valueFlowBailoutIncompleteVar] lincity-1.13.1/intl/dcigettext.c:523:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:123:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:256:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_2 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:312:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_1 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:336:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_3 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:360:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_5 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:384:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_4 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:409:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_6 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:431:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_1 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:440:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_3 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:449:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_5 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:458:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_4 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:467:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_6 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:572:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable population [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:616:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:657:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_1 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:849:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_1 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:903:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_7 [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:946:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] lincity-1.13.1/engine.c:977:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] lincity-1.13.1/intl/bindtextdom.c:347:18: style:inconclusive: Function 'libintl_bindtextdomain' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lincity-1.13.1/intl/libgnuintl.h:267:29: note: Function 'libintl_bindtextdomain' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/bindtextdom.c:347:18: note: Function 'libintl_bindtextdomain' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/bindtextdom.c:348:18: style:inconclusive: Function 'libintl_bindtextdomain' argument 2 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] lincity-1.13.1/intl/libgnuintl.h:267:29: note: Function 'libintl_bindtextdomain' argument 2 names different: declaration '__dirname' definition 'dirname'. lincity-1.13.1/intl/bindtextdom.c:348:18: note: Function 'libintl_bindtextdomain' argument 2 names different: declaration '__dirname' definition 'dirname'. lincity-1.13.1/intl/bindtextdom.c:358:18: style:inconclusive: Function 'libintl_bind_textdomain_codeset' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lincity-1.13.1/intl/libgnuintl.h:286:38: note: Function 'libintl_bind_textdomain_codeset' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/bindtextdom.c:358:18: note: Function 'libintl_bind_textdomain_codeset' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/bindtextdom.c:359:18: style:inconclusive: Function 'libintl_bind_textdomain_codeset' argument 2 names different: declaration '__codeset' definition 'codeset'. [funcArgNamesDifferent] lincity-1.13.1/intl/libgnuintl.h:286:38: note: Function 'libintl_bind_textdomain_codeset' argument 2 names different: declaration '__codeset' definition 'codeset'. lincity-1.13.1/intl/bindtextdom.c:359:18: note: Function 'libintl_bind_textdomain_codeset' argument 2 names different: declaration '__codeset' definition 'codeset'. lincity-1.13.1/intl/bindtextdom.c:254:12: style: Local variable 'len' shadows outer variable [shadowVariable] lincity-1.13.1/intl/bindtextdom.c:226:14: note: Shadowed declaration lincity-1.13.1/intl/bindtextdom.c:254:12: note: Shadow variable lincity-1.13.1/intl/bindtextdom.c:285:15: style: Local variable 'len' shadows outer variable [shadowVariable] lincity-1.13.1/intl/bindtextdom.c:226:14: note: Shadowed declaration lincity-1.13.1/intl/bindtextdom.c:285:15: note: Shadow variable lincity-1.13.1/intl/dcngettext.c:48:18: style:inconclusive: Function 'libintl_dcngettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:223:33: note: Function 'libintl_dcngettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dcngettext.c:48:18: note: Function 'libintl_dcngettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dcngettext.c:49:18: style:inconclusive: Function 'libintl_dcngettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:223:33: note: Function 'libintl_dcngettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lincity-1.13.1/intl/dcngettext.c:49:18: note: Function 'libintl_dcngettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lincity-1.13.1/intl/dcngettext.c:50:18: style:inconclusive: Function 'libintl_dcngettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:223:33: note: Function 'libintl_dcngettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lincity-1.13.1/intl/dcngettext.c:50:18: note: Function 'libintl_dcngettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lincity-1.13.1/intl/dcngettext.c:51:24: style:inconclusive: Function 'libintl_dcngettext' argument 4 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:223:33: note: Function 'libintl_dcngettext' argument 4 names different: declaration '__n' definition 'n'. lincity-1.13.1/intl/dcngettext.c:51:24: note: Function 'libintl_dcngettext' argument 4 names different: declaration '__n' definition 'n'. lincity-1.13.1/intl/dcngettext.c:52:10: style:inconclusive: Function 'libintl_dcngettext' argument 5 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:223:33: note: Function 'libintl_dcngettext' argument 5 names different: declaration '__category' definition 'category'. lincity-1.13.1/intl/dcngettext.c:52:10: note: Function 'libintl_dcngettext' argument 5 names different: declaration '__category' definition 'category'. lincity-1.13.1/intl/dgettext.c:50:18: style:inconclusive: Function 'libintl_dgettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:212:31: note: Function 'libintl_dgettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dgettext.c:50:18: note: Function 'libintl_dgettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dgettext.c:51:18: style:inconclusive: Function 'libintl_dgettext' argument 2 names different: declaration '__msgid' definition 'msgid'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:212:31: note: Function 'libintl_dgettext' argument 2 names different: declaration '__msgid' definition 'msgid'. lincity-1.13.1/intl/dgettext.c:51:18: note: Function 'libintl_dgettext' argument 2 names different: declaration '__msgid' definition 'msgid'. lincity-1.13.1/intl/dngettext.c:50:18: style:inconclusive: Function 'libintl_dngettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:219:32: note: Function 'libintl_dngettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dngettext.c:50:18: note: Function 'libintl_dngettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dngettext.c:51:18: style:inconclusive: Function 'libintl_dngettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:219:32: note: Function 'libintl_dngettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lincity-1.13.1/intl/dngettext.c:51:18: note: Function 'libintl_dngettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lincity-1.13.1/intl/dngettext.c:52:18: style:inconclusive: Function 'libintl_dngettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:219:32: note: Function 'libintl_dngettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lincity-1.13.1/intl/dngettext.c:52:18: note: Function 'libintl_dngettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lincity-1.13.1/intl/dngettext.c:53:24: style:inconclusive: Function 'libintl_dngettext' argument 4 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:219:32: note: Function 'libintl_dngettext' argument 4 names different: declaration '__n' definition 'n'. lincity-1.13.1/intl/dngettext.c:53:24: note: Function 'libintl_dngettext' argument 4 names different: declaration '__n' definition 'n'. lincity-1.13.1/intl/dcigettext.c:522:10: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] lincity-1.13.1/intl/dcigettext.c:569:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] lincity-1.13.1/intl/hash-string.h:40:18: style:inconclusive: Function 'hash_string' argument 1 names different: declaration '__str_param' definition 'str_param'. [funcArgNamesDifferent] lincity-1.13.1/intl/hash-string.h:36:38: note: Function 'hash_string' argument 1 names different: declaration '__str_param' definition 'str_param'. lincity-1.13.1/intl/hash-string.h:40:18: note: Function 'hash_string' argument 1 names different: declaration '__str_param' definition 'str_param'. lincity-1.13.1/intl/dcigettext.c:410:18: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:228:33: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dcigettext.c:410:18: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/dcigettext.c:411:18: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:228:33: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lincity-1.13.1/intl/dcigettext.c:411:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lincity-1.13.1/intl/dcigettext.c:412:18: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:228:33: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lincity-1.13.1/intl/dcigettext.c:412:18: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lincity-1.13.1/intl/dcigettext.c:413:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:228:33: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. lincity-1.13.1/intl/dcigettext.c:413:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. lincity-1.13.1/intl/dcigettext.c:414:24: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:228:33: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. lincity-1.13.1/intl/dcigettext.c:414:24: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. lincity-1.13.1/intl/dcigettext.c:415:10: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:228:33: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. lincity-1.13.1/intl/dcigettext.c:415:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. lincity-1.13.1/intl/dcigettext.c:511:13: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/intl/dcigettext.c:215:9: style: struct member 'known_translation_t::domainname' is never used. [unusedStructMember] lincity-1.13.1/intl/dcigettext.c:218:7: style: struct member 'known_translation_t::category' is never used. [unusedStructMember] lincity-1.13.1/intl/dcigettext.c:221:7: style: struct member 'known_translation_t::counter' is never used. [unusedStructMember] lincity-1.13.1/intl/dcigettext.c:224:27: style: struct member 'known_translation_t::domain' is never used. [unusedStructMember] lincity-1.13.1/intl/dcigettext.c:227:15: style: struct member 'known_translation_t::translation' is never used. [unusedStructMember] lincity-1.13.1/intl/dcigettext.c:228:10: style: struct member 'known_translation_t::translation_length' is never used. [unusedStructMember] lincity-1.13.1/intl/finddomain.c:51:18: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:165:41: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. lincity-1.13.1/intl/finddomain.c:51:18: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. lincity-1.13.1/intl/finddomain.c:52:12: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:165:41: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. lincity-1.13.1/intl/finddomain.c:52:12: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. lincity-1.13.1/intl/finddomain.c:53:18: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:165:41: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/finddomain.c:53:18: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/finddomain.c:54:22: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:165:41: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. lincity-1.13.1/intl/finddomain.c:54:22: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. lincity-1.13.1/intl/dcigettext.c:231:8: style: struct member 'known_translation_t::msgid' is never used. [unusedStructMember] lincity-1.13.1/intl/gettext.c:56:18: style:inconclusive: Function 'libintl_gettext' argument 1 names different: declaration '__msgid' definition 'msgid'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:211:30: note: Function 'libintl_gettext' argument 1 names different: declaration '__msgid' definition 'msgid'. lincity-1.13.1/intl/gettext.c:56:18: note: Function 'libintl_gettext' argument 1 names different: declaration '__msgid' definition 'msgid'. lincity-1.13.1/engine.c:43:22: style:inconclusive: Function 'no_credit_build' argument 1 names different: declaration 'selected_type' definition 'selected_group'. [funcArgNamesDifferent] lincity-1.13.1/lin-city.h:1313:26: note: Function 'no_credit_build' argument 1 names different: declaration 'selected_type' definition 'selected_group'. lincity-1.13.1/engine.c:43:22: note: Function 'no_credit_build' argument 1 names different: declaration 'selected_type' definition 'selected_group'. lincity-1.13.1/intl/localcharset.c:115:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] lincity-1.13.1/intl/loadmsgcat.c:931:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] lincity-1.13.1/intl/localcharset.c:266:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] lincity-1.13.1/intl/localcharset.c:257:24: note: Assignment 'locale=NULL', assigned value is 0 lincity-1.13.1/intl/localcharset.c:266:14: note: Condition 'locale==NULL' is always true lincity-1.13.1/intl/localcharset.c:177:5: error: Common realloc mistake: 'res_ptr' nulled but not freed upon failure [memleakOnRealloc] lincity-1.13.1/intl/localealias.c:148:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALE_ALIAS_PATH [valueFlowBailoutIncompleteVar] lincity-1.13.1/intl/localealias.c:238:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] lincity-1.13.1/intl/l10nflist.c:369:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/intl/localealias.c:139:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/intl/localealias.c:239:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/intl/localealias.c:240:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/intl/localealias.c:157:41: error: Uninitialized variable: &item.value [uninitvar] lincity-1.13.1/intl/ngettext.c:58:18: style:inconclusive: Function 'libintl_ngettext' argument 1 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:216:31: note: Function 'libintl_ngettext' argument 1 names different: declaration '__msgid1' definition 'msgid1'. lincity-1.13.1/intl/ngettext.c:58:18: note: Function 'libintl_ngettext' argument 1 names different: declaration '__msgid1' definition 'msgid1'. lincity-1.13.1/intl/ngettext.c:59:18: style:inconclusive: Function 'libintl_ngettext' argument 2 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:216:31: note: Function 'libintl_ngettext' argument 2 names different: declaration '__msgid2' definition 'msgid2'. lincity-1.13.1/intl/ngettext.c:59:18: note: Function 'libintl_ngettext' argument 2 names different: declaration '__msgid2' definition 'msgid2'. lincity-1.13.1/intl/ngettext.c:60:24: style:inconclusive: Function 'libintl_ngettext' argument 3 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:216:31: note: Function 'libintl_ngettext' argument 3 names different: declaration '__n' definition 'n'. lincity-1.13.1/intl/ngettext.c:60:24: note: Function 'libintl_ngettext' argument 3 names different: declaration '__n' definition 'n'. lincity-1.13.1/intl/os2compat.c:60:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] lincity-1.13.1/intl/os2compat.c:61:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_libdir [nullPointerOutOfMemory] lincity-1.13.1/intl/os2compat.c:60:43: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:61:19: note: Null pointer dereference lincity-1.13.1/intl/os2compat.c:75:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localealiaspath [nullPointerOutOfMemory] lincity-1.13.1/intl/os2compat.c:74:52: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:75:19: note: Null pointer dereference lincity-1.13.1/intl/os2compat.c:89:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] lincity-1.13.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:89:19: note: Null pointer dereference lincity-1.13.1/intl/os2compat.c:96:15: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] lincity-1.13.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:96:15: note: Null pointer dereference lincity-1.13.1/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lincity-1.13.1/intl/os2compat.c:60:43: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:62:33: note: Null pointer addition lincity-1.13.1/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lincity-1.13.1/intl/os2compat.c:74:52: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:76:42: note: Null pointer addition lincity-1.13.1/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lincity-1.13.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:90:36: note: Null pointer addition lincity-1.13.1/intl/os2compat.c:51:9: style: Variable 'root' can be declared as pointer to const [constVariablePointer] plural.y:184:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable qmop [valueFlowBailoutIncompleteVar] plural.y:303:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] lincity-1.13.1/intl/loadmsgcat.c:973:2: error: Resource leak: fd [resourceLeak] lincity-1.13.1/intl/loadmsgcat.c:966:12: style: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. [knownConditionTrueFalse] lincity-1.13.1/intl/loadmsgcat.c:910:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. lincity-1.13.1/intl/loadmsgcat.c:966:12: note: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. lincity-1.13.1/intl/loadmsgcat.c:760:30: style:inconclusive: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:175:34: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. lincity-1.13.1/intl/loadmsgcat.c:760:30: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. lincity-1.13.1/intl/loadmsgcat.c:761:28: style:inconclusive: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:175:34: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. lincity-1.13.1/intl/loadmsgcat.c:761:28: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. lincity-1.13.1/intl/loadmsgcat.c:762:22: style:inconclusive: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:175:34: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. lincity-1.13.1/intl/loadmsgcat.c:762:22: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. lincity-1.13.1/intl/loadmsgcat.c:879:28: style:inconclusive: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:179:27: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. lincity-1.13.1/intl/loadmsgcat.c:879:28: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. lincity-1.13.1/intl/loadmsgcat.c:900:30: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:170:22: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. lincity-1.13.1/intl/loadmsgcat.c:900:30: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. lincity-1.13.1/intl/loadmsgcat.c:901:22: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] lincity-1.13.1/intl/gettextP.h:170:22: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. lincity-1.13.1/intl/loadmsgcat.c:901:22: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. lincity-1.13.1/intl/textdomain.c:81:18: style:inconclusive: Function 'libintl_textdomain' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lincity-1.13.1/intl/libgnuintl.h:249:25: note: Function 'libintl_textdomain' argument 1 names different: declaration '__domainname' definition 'domainname'. lincity-1.13.1/intl/textdomain.c:81:18: note: Function 'libintl_textdomain' argument 1 names different: declaration '__domainname' definition 'domainname'. plural.y:406:18: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] /usr/local/share/bison.simple:190:18: style: Variable 'f' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/modules/blacksmith.c:30:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_COAL_AT_BLACKSMITH [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/blacksmith.c:110:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_GOODS_AT_BLACKSMITH [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/coal_power.c:37:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_COAL_AT_POWER_STATION [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/coal_power.c:112:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_COAL_AT_POWER_STATION [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/coalmine.c:30:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIG_MORE_COAL_TRIGGER [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/coalmine.c:180:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_COAL_AT_MINE [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/commune.c:55:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable total_time [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/cricket.c:29:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_JOBS_AT_CRICKET [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/cricket.c:78:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CRICKET_JOBS [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/cricket.c:111:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_JOBS_AT_CRICKET [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/fire.c:31:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIRE_LENGTH [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/firestation.c:31:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_JOBS_AT_FIRESTATION [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/firestation.c:97:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIRESTATION_JOBS [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/health_centre.c:27:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_JOBS_AT_HEALTH_CENTRE [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/firestation.c:130:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_JOBS_AT_FIRESTATION [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/health_centre.c:45:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HEALTH_CENTRE_JOBS [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/health_centre.c:77:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_JOBS_AT_HEALTH_CENTRE [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/heavy_industry.c:36:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_ORE_AT_INDUSTRY_H [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/heavy_industry.c:333:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_POWERED [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/light_industry.c:33:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_JOBS_AT_INDUSTRY_L [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/light_industry.c:342:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_POWERED [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:24:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:50:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:73:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:96:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:121:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:153:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:177:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:201:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:225:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:248:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:273:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:296:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:321:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:344:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:368:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:383:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:413:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:470:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_markets [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:1005:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_val [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:1061:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_val [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:1118:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_val [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/mill.c:32:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FOOD_AT_MILL [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/mill.c:116:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_GOODS_AT_MILL [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/monument.c:25:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUILD_MONUMENT_JOBS [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/monument.c:68:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUILD_MONUMENT_JOBS [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/organic_farm.c:38:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_POWERED [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/organic_farm.c:178:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mps_info [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/oremine.c:30:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIG_MORE_ORE_TRIGGER [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/oremine.c:196:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIG_MORE_ORE_TRIGGER [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/organic_farm.c:176:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/modules/parkland.c:18:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable total_time [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/port.c:38:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_IS_TRANSPORT [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/pottery.c:36:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_GOODS_AT_POTTERY [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/port.c:213:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_3 [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/pottery.c:132:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_JOBS_AT_POTTERY [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/power_line.c:29:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable grid [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/rail.c:36:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transport_cost [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/rail.c:60:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FOOD_ON_RAIL [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/recycle.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable recycle_cost [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/recycle.c:182:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_POWERED [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/residence.c:35:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_HEALTH_COVER [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/residence.c:284:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_POWERED [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/road.c:38:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transport_cost [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/road.c:57:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FOOD_ON_ROAD [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/rocket_pad.c:34:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CST_ROCKET_FLOWN [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/rocket_pad.c:130:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rockets_launched [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/rocket_pad.c:173:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROCKET_PAD_LAUNCH [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/residence.c:60:14: style: Condition 'hc!=0' is always true [knownConditionTrueFalse] lincity-1.13.1/modules/rocket_pad.c:120:6: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] lincity-1.13.1/modules/rocket_pad.c:121:6: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] lincity-1.13.1/modules/school.c:29:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_JOBS_AT_SCHOOL [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/school.c:59:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TECH_LEVEL [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/rocket_pad.c:120:8: style: Variable 'x' is assigned a value that is never used. [unreadVariable] lincity-1.13.1/modules/rocket_pad.c:121:8: style: Variable 'y' is assigned a value that is never used. [unreadVariable] lincity-1.13.1/modules/shanty.c:22:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WORLD_SIDE_LEN [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/shanty.c:72:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_shanties [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/shanty.c:96:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable people_pool [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/shanty.c:112:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHANTY_GET_FOOD [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/solar_power.c:36:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOLAR_POWER_JOBS [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/solar_power.c:67:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TECH_LEVEL [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/substation.c:31:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable grid [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/substation.c:50:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_substations [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/substation.c:62:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_substations [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/substation.c:77:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numof_substations [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/substation.c:108:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable grid [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/tip.c:37:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CST_TIP_8 [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/tip.c:124:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WASTE_AT_TIP [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/university.c:30:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNIVERSITY_JOBS_STORE [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/university.c:77:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TECH_LEVEL [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/track.c:36:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WASTE_ON_TRACK [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/track.c:48:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FOOD_ON_TRACK [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/water.c:29:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_IS_RIVER [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/windmill.c:36:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WINDMILL_JOBS [valueFlowBailoutIncompleteVar] lincity-1.13.1/modules/windmill.c:86:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODERN_WINDMILL_TECH [valueFlowBailoutIncompleteVar] lincity-1.13.1/market.c:973:43: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] lincity-1.13.1/market.c:1029:43: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] lincity-1.13.1/market.c:1086:43: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] lincity-1.13.1/readpng.c:62:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_LIBPNG_VER_STRING [valueFlowBailoutIncompleteVar] lincity-1.13.1/readpng.c:600:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lincity-1.13.1/power.c:63:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_5 [valueFlowBailoutIncompleteVar] lincity-1.13.1/power.c:77:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_7 [valueFlowBailoutIncompleteVar] lincity-1.13.1/power.c:113:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_2 [valueFlowBailoutIncompleteVar] lincity-1.13.1/power.c:170:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_2 [valueFlowBailoutIncompleteVar] lincity-1.13.1/power.c:318:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_1 [valueFlowBailoutIncompleteVar] lincity-1.13.1/power.c:364:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable int_6 [valueFlowBailoutIncompleteVar] lincity-1.13.1/power.c:113:7: warning: Either the condition 'mapy<100' is redundant or the array 'map.group[100][100]' is accessed at index map.group[100][100], which is out of bounds. [arrayIndexOutOfBoundsCond] lincity-1.13.1/power.c:239:11: note: Assuming that condition 'mapy<100' is not redundant lincity-1.13.1/power.c:240:39: note: Calling function 'check_grid', 2nd argument 'mapy+1' value is 100 lincity-1.13.1/power.c:113:7: note: Array index out of bounds lincity-1.13.1/power.c:313:19: style:inconclusive: Function 'project_power' argument 1 names different: declaration 'x' definition 'mapx'. [funcArgNamesDifferent] lincity-1.13.1/power.h:33:24: note: Function 'project_power' argument 1 names different: declaration 'x' definition 'mapx'. lincity-1.13.1/power.c:313:19: note: Function 'project_power' argument 1 names different: declaration 'x' definition 'mapx'. lincity-1.13.1/power.c:313:29: style:inconclusive: Function 'project_power' argument 2 names different: declaration 'y' definition 'mapy'. [funcArgNamesDifferent] lincity-1.13.1/power.h:33:31: note: Function 'project_power' argument 2 names different: declaration 'y' definition 'mapy'. lincity-1.13.1/power.c:313:29: note: Function 'project_power' argument 2 names different: declaration 'y' definition 'mapy'. lincity-1.13.1/readpng.c:575:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] lincity-1.13.1/readpng.c:578:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] lincity-1.13.1/readpng.c:580:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] lincity-1.13.1/readpng.c:54:2: error: Resource leak: fp [resourceLeak] lincity-1.13.1/readpng.c:67:2: error: Resource leak: txt_fp [resourceLeak] lincity-1.13.1/readpng.c:78:2: error: Resource leak: txt_fp [resourceLeak] lincity-1.13.1/readpng.c:93:2: error: Resource leak: txt_fp [resourceLeak] lincity-1.13.1/readpng.c:151:2: error: Resource leak: txt_fp [resourceLeak] lincity-1.13.1/readpng.c:164:2: error: Resource leak: txt_fp [resourceLeak] lincity-1.13.1/readpng.c:170:2: warning: If memory allocation fails, then there is a possible null pointer dereference: row_pointers [nullPointerOutOfMemory] lincity-1.13.1/readpng.c:168:27: note: Assuming allocation function fails lincity-1.13.1/readpng.c:168:27: note: Assignment 'row_pointers=malloc(sizeof(void*)*height)', assigned value is 0 lincity-1.13.1/readpng.c:170:2: note: Null pointer dereference lincity-1.13.1/readpng.c:546:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: row_pointers [nullPointerOutOfMemory] lincity-1.13.1/readpng.c:168:27: note: Assuming allocation function fails lincity-1.13.1/readpng.c:168:27: note: Assignment 'row_pointers=malloc(sizeof(void*)*height)', assigned value is 0 lincity-1.13.1/readpng.c:546:20: note: Null pointer dereference lincity-1.13.1/tools/csippm/csi2ppm.c:29:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lincity-1.13.1/readpng.c:39:26: style: Parameter 'txt_filename' can be declared as pointer to const [constParameterPointer] lincity-1.13.1/readpng.c:39:46: style: Parameter 'png_filename' can be declared as pointer to const [constParameterPointer] lincity-1.13.1/readpng.c:561:50: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] lincity-1.13.1/readpng.c:566:11: style: Variable 'fnp' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/readpng.c:566:16: style: Variable 'rip' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/readpng.c:566:21: style: Variable 'cip' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/readpng.c:168:5: warning: Size of pointer 'row_pointers' used instead of size of its data. [pointerSize] lincity-1.13.1/tools/csippm/csi2ppm.c:24:20: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] lincity-1.13.1/winmain.c:144:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNDCLASSEX [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:177:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SW_RESTORE [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:248:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SM_CXSCREEN [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:267:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RASTERCAPS [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:443:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PM_REMOVE [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:492:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PM_REMOVE [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:535:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x_key_value [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:599:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x_key_shifted [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:816:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGPALETTE [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:851:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BITMAPINFOHEADER [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:991:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIB_RGB_COLORS [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:1361:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable peRed [valueFlowBailoutIncompleteVar] lincity-1.13.1/winmain.c:872:21: style: Condition 'iNumClr' is always true [knownConditionTrueFalse] lincity-1.13.1/winmain.c:847:19: note: Assignment 'iNumClr=256', assigned value is 256 lincity-1.13.1/winmain.c:852:92: note: Assuming condition is false lincity-1.13.1/winmain.c:872:21: note: Condition 'iNumClr' is always true lincity-1.13.1/winmain.c:639:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] lincity-1.13.1/winmain.c:647:4: note: Found duplicate branches for 'if' and 'else'. lincity-1.13.1/winmain.c:639:2: note: Found duplicate branches for 'if' and 'else'. lincity-1.13.1/winmain.c:97:5: style: Statements following 'return' will never be executed. [unreachableCode] lincity-1.13.1/winmain.c:97:5: warning: Unused variable value 'lpCmdLine' [constStatement] lincity-1.13.1/winmain.c:627:18: style: Variable 'lKeyData' is assigned a value that is never used. [unreadVariable] lincity-1.13.1/winmain.c:694:14: style: Variable 'szScreen.cx' is assigned a value that is never used. [unreadVariable] lincity-1.13.1/winmain.c:695:14: style: Variable 'szScreen.cy' is assigned a value that is never used. [unreadVariable] lincity-1.13.1/winmain.c:627:9: style: Variable 'lKeyData' is assigned a value that is never used. [unreadVariable] lincity-1.13.1/winmain.c:901:10: style: Variable 'hPalOld' is assigned a value that is never used. [unreadVariable] lincity-1.13.1/winmain.c:919:16: style: Variable 'hBitmapOri' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 lincity-1.13.1/intl/os2compat.c:62:33: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lincity-1.13.1/intl/os2compat.c:60:43: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:62:33: note: Null pointer addition head lincity-1.13.1/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lincity-1.13.1/intl/os2compat.c:60:43: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:62:33: note: Null pointer addition 2.17.0 lincity-1.13.1/intl/os2compat.c:76:42: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lincity-1.13.1/intl/os2compat.c:74:52: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:76:42: note: Null pointer addition head lincity-1.13.1/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lincity-1.13.1/intl/os2compat.c:74:52: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:76:42: note: Null pointer addition 2.17.0 lincity-1.13.1/intl/os2compat.c:90:36: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lincity-1.13.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:90:36: note: Null pointer addition head lincity-1.13.1/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lincity-1.13.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lincity-1.13.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lincity-1.13.1/intl/os2compat.c:90:36: note: Null pointer addition head lincity-1.13.1/lcconfig.h:22:2: error: #error Int32 is not defined. [preprocessorErrorDirective] head lincity-1.13.1/winmain.c:627:9: style: Variable 'lKeyData' is assigned a value that is never used. [unreadVariable] DONE