2024-03-27 19:03 ftp://ftp.de.debian.org/debian/pool/main/l/lpe/lpe_1.2.8.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-101-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.13.0 head-info: 4d68318 (2024-03-27 19:27:33 +0100) count: 170 138 elapsed-time: 36.7 62.1 head-timing-info: old-timing-info: head results: data/comp.c:12:8: style: Variable 'c1' can be declared as pointer to const [constVariablePointer] intl/bindtextdom.c:203:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] intl/bindtextdom.c:229:12: style: Local variable 'len' shadows outer variable [shadowVariable] intl/bindtextdom.c:201:14: note: Shadowed declaration intl/bindtextdom.c:229:12: note: Shadow variable intl/bindtextdom.c:258:15: style: Local variable 'len' shadows outer variable [shadowVariable] intl/bindtextdom.c:201:14: note: Shadowed declaration intl/bindtextdom.c:258:15: note: Shadow variable intl/dcigettext.c:641:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] intl/dcigettext.c:640:14: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] intl/dcigettext.c:689:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] intl/dcigettext.c:485:25: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] intl/gettextP.h:79:46: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. intl/dcigettext.c:485:25: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. intl/dcigettext.c:485:49: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] intl/gettextP.h:80:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. intl/dcigettext.c:485:49: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. intl/dcigettext.c:485:69: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] intl/gettextP.h:80:40: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. intl/dcigettext.c:485:69: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. intl/dcigettext.c:486:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] intl/gettextP.h:81:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. intl/dcigettext.c:486:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. intl/dcigettext.c:486:36: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] intl/gettextP.h:81:38: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. intl/dcigettext.c:486:36: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. intl/dcigettext.c:486:43: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] intl/gettextP.h:82:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. intl/dcigettext.c:486:43: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. intl/tsearch.c:183:8: style: Local variable 'root' shadows outer variable [shadowVariable] intl/dcigettext.c:275:14: note: Shadowed declaration intl/tsearch.c:183:8: note: Shadow variable intl/tsearch.c:283:12: style: Local variable 'root' shadows outer variable [shadowVariable] intl/dcigettext.c:275:14: note: Shadowed declaration intl/tsearch.c:283:12: note: Shadow variable intl/tsearch.c:344:12: style: Local variable 'root' shadows outer variable [shadowVariable] intl/dcigettext.c:275:14: note: Shadowed declaration intl/tsearch.c:344:12: note: Shadow variable intl/tsearch.c:369:8: style: Local variable 'root' shadows outer variable [shadowVariable] intl/dcigettext.c:275:14: note: Shadowed declaration intl/tsearch.c:369:8: note: Shadow variable intl/tsearch.c:619:14: style: Local variable 'root' shadows outer variable [shadowVariable] intl/dcigettext.c:275:14: note: Shadowed declaration intl/tsearch.c:619:14: note: Shadow variable intl/tsearch.c:642:14: style: Local variable 'root' shadows outer variable [shadowVariable] intl/dcigettext.c:275:14: note: Shadowed declaration intl/tsearch.c:642:14: note: Shadow variable intl/dcigettext.c:629:10: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] intl/dcigettext.c:1421:25: style: Variable 'domaindata' can be declared as pointer to const [constVariablePointer] intl/dgettext.c:50:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] intl/dngettext.c:51:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] intl/finddomain.c:59:30: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] intl/gettextP.h:259:54: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. intl/finddomain.c:59:30: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. intl/finddomain.c:59:45: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] intl/gettextP.h:259:71: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. intl/finddomain.c:59:45: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. intl/finddomain.c:60:16: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] intl/gettextP.h:260:19: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. intl/finddomain.c:60:16: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. intl/finddomain.c:60:44: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] intl/gettextP.h:261:23: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. intl/finddomain.c:60:44: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. intl/gettext.c:55:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] intl/l10nflist.c:315:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] intl/loadmsgcat.c:803:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lock [valueFlowBailoutIncompleteVar] intl/loadmsgcat.c:868: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] intl/loadmsgcat.c:795:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. intl/loadmsgcat.c:868: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. intl/loadmsgcat.c:785:42: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] intl/gettextP.h:263:47: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. intl/loadmsgcat.c:785:42: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. intl/loadmsgcat.c:786:20: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] intl/gettextP.h:264:25: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. intl/loadmsgcat.c:786:20: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. intl/localcharset.c:140:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] intl/localcharset.c:473:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] intl/localcharset.c:464:24: note: Assignment 'locale=NULL', assigned value is 0 intl/localcharset.c:473:14: note: Condition 'locale==NULL' is always true intl/localcharset.c:184:19: error: Resource handle 'fd' freed twice. [doubleFree] intl/localcharset.c:180:20: note: Resource handle 'fd' freed twice. intl/localcharset.c:184:19: note: Resource handle 'fd' freed twice. intl/localealias.c:163:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lock [valueFlowBailoutIncompleteVar] intl/localealias.c:159:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] intl/localealias.c:261:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] intl/localealias.c:262:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] intl/localealias.c:175:41: error: Uninitialized variable: &item.value [uninitvar] intl/localename.c:2961:14: style: Condition 'retval!=NULL' is always false [knownConditionTrueFalse] intl/localename.c:2960:34: note: Calling function 'gl_locale_name_thread' returns 0 intl/localename.c:2960:34: note: Assignment 'retval=gl_locale_name_thread(category,categoryname)', assigned value is 0 intl/localename.c:2961:14: note: Condition 'retval!=NULL' is always false intl/log.c:123:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lock [valueFlowBailoutIncompleteVar] intl/ngettext.c:57:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] intl/os2compat.c:58:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] intl/os2compat.c:49:9: style: Variable 'root' can be declared as pointer to const [constVariablePointer] plural.y:162:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable qmop [valueFlowBailoutIncompleteVar] plural.y:278:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] plural.c:1094:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] plural.y:380:29: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] plural.c:1094:11: style: Variable 'yymsg' is assigned a value that is never used. [unreadVariable] intl/xsize.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] intl/tsearch.c:622:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable leaf [valueFlowBailoutIncompleteVar] src/buffer.c:82:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLUGINDIR [valueFlowBailoutIncompleteVar] src/buffer.c:265:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] src/buffer.c:389:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] src/buffer.c:441:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] src/buffer.c:155:33: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] src/buffer.c:108:6: error: Common realloc mistake: 'name' nulled but not freed upon failure [memleakOnRealloc] src/buffer.c:116:6: error: Common realloc mistake: 'name' nulled but not freed upon failure [memleakOnRealloc] src/buffer.c:131:13: error: Common realloc mistake: 'name' nulled but not freed upon failure [memleakOnRealloc] src/buffer.c:162:21: error: Common realloc mistake: 'name' nulled but not freed upon failure [memleakOnRealloc] src/buffer.c:235:23: style:inconclusive: Function 'free_list' argument 1 names different: declaration 'list' definition 'lst'. [funcArgNamesDifferent] src/buffer.h:22:26: note: Function 'free_list' argument 1 names different: declaration 'list' definition 'lst'. src/buffer.c:235:23: note: Function 'free_list' argument 1 names different: declaration 'list' definition 'lst'. src/buffer.c:56:35: style: Parameter 'reqname' can be declared as pointer to const [constParameterPointer] src/buffer.c:59:21: style: Variable 'nextcolon' can be declared as pointer to const [constVariablePointer] src/buffer.c:89:17: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] src/buffer.c:93:12: style: Variable 'home' can be declared as pointer to const [constVariablePointer] src/buffer.c:436:34: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] src/buffer.c:577:9: warning: Size of pointer 'dir' used instead of size of its data. [pointerSize] src/buffer.c:564:17: style: Unused variable: st [unusedVariable] src/cfg-core.c:65:26: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] src/cfg-core.c:120:2: error: Common realloc mistake: 'LpeOptionTable' nulled but not freed upon failure [memleakOnRealloc] src/cfg-core.c:48:28: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] src/cfg-core.c:50:11: style: Variable 't_hentry' can be declared as pointer to const [constVariablePointer] src/cfg-core.c:198:37: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] src/cfg-core.c:305:1: error: va_list 'arglist' was opened but not closed by va_end(). [va_end_missing] src/cfg.c:33:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLANG_STRING_TYPE [valueFlowBailoutIncompleteVar] src/cfg.c:46:30: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] src/cfg.c:46:42: style: Parameter 'section' can be declared as pointer to const [constParameterPointer] src/cfg.c:46:57: style: Parameter 'option' can be declared as pointer to const [constParameterPointer] src/cfg.c:63:29: style: Parameter 'def' can be declared as pointer to const [constParameterPointer] src/cfg.c:93:27: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] src/cfg.c:93:39: style: Parameter 'section' can be declared as pointer to const [constParameterPointer] src/cfg.c:93:54: style: Parameter 'option' can be declared as pointer to const [constParameterPointer] src/common.c:21:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] src/common.c:14:23: style:inconclusive: Function 'copy' argument 1 names different: declaration 'from' definition 'from_file'. [funcArgNamesDifferent] src/common.h:9:24: note: Function 'copy' argument 1 names different: declaration 'from' definition 'from_file'. src/common.c:14:23: note: Function 'copy' argument 1 names different: declaration 'from' definition 'from_file'. src/common.c:14:46: style:inconclusive: Function 'copy' argument 2 names different: declaration 'to' definition 'to_file'. [funcArgNamesDifferent] src/common.h:9:43: note: Function 'copy' argument 2 names different: declaration 'to' definition 'to_file'. src/common.c:14:46: note: Function 'copy' argument 2 names different: declaration 'to' definition 'to_file'. src/exports.c:48:28: style: Argument 'buff->autoindent||1' to function mode_util_set_options is always 1. It does not matter what value 'buff->autoindent' has. [knownArgument] src/exports.c:49:27: style: Argument 'buff->offerhelp||1' to function mode_util_set_options is always 1. It does not matter what value 'buff->offerhelp' has. [knownArgument] src/exports.c:25:21: style: Parameter 'filename' can be declared as pointer to const. However it seems that 'i_lpe_exists' is a callback function, if 'filename' is declared with const you might also need to cast function pointer(s). [constParameterCallback] src/exports.c:82:37: note: You might need to cast the function pointer here src/exports.c:25:21: note: Parameter 'filename' can be declared as pointer to const src/help.c:31:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] src/help.c:191:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] src/help.c:23:20: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] src/input.c:270:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] src/input.c:297:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] src/input.c:478:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] src/input.c:553:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] src/input.c:610:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] src/input.c:707:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] src/input.c:797:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] src/input.c:900:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] src/input.c:923:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] src/input.c:963:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] src/input.c:1007:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] src/input.c:1050:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] src/input.c:1275:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] src/input.c:1458:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] src/input.c:1720:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] src/input.c:2360:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLKeyBoard_Quit [valueFlowBailoutIncompleteVar] src/input.c:1675:5: warning: Return value of function pipe() is not used. [ignoredReturnValue] src/input.c:1676:5: warning: Return value of function pipe() is not used. [ignoredReturnValue] src/input.c:1131:53: style: Condition '*search_str=='\0'' is always false [knownConditionTrueFalse] src/input.c:2240:9: error: Return value of allocation function 'malloc' is not stored. [leakReturnValNotUsed] src/input.c:1548:5: style: Statements following noreturn function 'raise()' will never be executed. [unreachableCode] src/input.c:1680:8: style: Local variable 'fp' shadows outer variable [shadowVariable] src/input.c:1671:11: note: Shadowed declaration src/input.c:1680:8: note: Shadow variable src/input.c:132:21: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] src/input.c:952:8: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] src/input.c:1122:11: style: Variable 'search_str' can be declared as pointer to const [constVariablePointer] src/input.c:1156:8: style: Variable 'result' can be declared as pointer to const [constVariablePointer] src/input.c:1193:11: style: Variable 'ans' can be declared as pointer to const [constVariablePointer] src/input.c:1260:11: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] src/input.c:1544:23: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] src/input.c:1572:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] src/input.c:1591:24: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] src/input.c:1626:24: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] src/input.c:1668:37: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] src/input.c:2195:13: style: Variable 'buf_help' can be declared as pointer to const [constVariablePointer] src/input.c:2227:11: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] src/lpe.c:87:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] src/lpe.c:132:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] src/lpe.c:238:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] src/lpe.c:60:18: style: Condition 'the_buf->next' is always true [knownConditionTrueFalse] src/lpe.c:129:14: style: Parameter 'hint' can be declared as pointer to const [constParameterPointer] src/lpe.c:57:13: error: Uninitialized variable: node [legacyUninitvar] src/lpecomm.c:51:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] src/minibuf.h:42:47: error: syntax error: ~) [syntaxError] src/mode-utils.c:66:15: style: Redundant condition: line. '!line || (line && strlen(line)==0)' is equivalent to '!line || strlen(line)==0' [redundantCondition] src/mode-utils.c:27:36: style: Parameter 'extension' can be declared as pointer to const [constParameterPointer] src/mode-utils.c:31:11: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] src/mode-utils.c:59:36: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] src/mode-utils.c:128:42: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] src/modes/cmode.c:334:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_SYMBOL [valueFlowBailoutIncompleteVar] src/modes/cmode.c:316:28: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] src/modes/cppmode.c:343:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_SYMBOL [valueFlowBailoutIncompleteVar] src/modes/cppmode.c:325:28: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] src/modes/htmlmode.c:187:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_ILLEGAL [valueFlowBailoutIncompleteVar] src/modes/htmlmode.c:338:30: style: Condition 'ch=='#'' is always false [knownConditionTrueFalse] src/modes/htmlmode.c:39:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] src/modes/javamode.c:353:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_IDENT [valueFlowBailoutIncompleteVar] src/modes/javamode.c:284:28: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] src/modes/lispmode.c:226:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_SYMBOL [valueFlowBailoutIncompleteVar] src/modes/lispmode.c:156:5: error: Common realloc mistake: 'brace_stack' nulled but not freed upon failure [memleakOnRealloc] src/modes/mailmode.c:57:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] src/modes/mailmode.c:97:45: style: Parameter 'ln' can be declared as pointer to const [constParameterPointer] src/modes/perlmode.c:353:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_IDENT [valueFlowBailoutIncompleteVar] src/modes/perlmode.c:286:44: style: Parameter 'idx' can be declared as pointer to const [constParameterPointer] src/modes/sgmlmode.c:200:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_ILLEGAL [valueFlowBailoutIncompleteVar] src/modes/sgmlmode.c:364:30: style: Condition 'ch=='#'' is always false [knownConditionTrueFalse] src/modes/sgmlmode.c:37:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] src/screen.c:92:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key_backspace [valueFlowBailoutIncompleteVar] src/screen.c:206:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] src/screen.c:220:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Use_Ansi_Colors [valueFlowBailoutIncompleteVar] src/screen.c:305:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] src/screen.c:416:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Use_Ansi_Colors [valueFlowBailoutIncompleteVar] src/screen.c:480:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] src/screen.c:253:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] src/screen.c:260:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] src/screen.c:214:23: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] src/screen.c:217:20: style: Variable 'ptmp' can be declared as pointer to const [constVariablePointer] src/screen.c:301:27: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] diff: head plural.y:278:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] head plural.y:380:29: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] head src/buffer.c:265:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head src/buffer.c:389:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head src/buffer.c:441:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head src/help.c:191:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head src/input.c:1007:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head src/input.c:1050:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] head src/input.c:1275:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head src/input.c:132:21: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] head src/input.c:1458:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] head src/input.c:1544:23: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] head src/input.c:1591:24: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] head src/input.c:1626:24: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] head src/input.c:1720:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] head src/input.c:2360:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLKeyBoard_Quit [valueFlowBailoutIncompleteVar] head src/input.c:297:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] head src/input.c:478:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] head src/input.c:553:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] head src/input.c:610:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] head src/input.c:707:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] head src/input.c:797:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] head src/input.c:900:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head src/input.c:923:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head src/input.c:963:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head src/lpe.c:132:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head src/lpe.c:238:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] head src/screen.c:206:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] head src/screen.c:220:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Use_Ansi_Colors [valueFlowBailoutIncompleteVar] head src/screen.c:305:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] head src/screen.c:416:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Use_Ansi_Colors [valueFlowBailoutIncompleteVar] head src/screen.c:480:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLtt_Screen_Rows [valueFlowBailoutIncompleteVar] DONE