2024-03-28 04:14 ftp://ftp.de.debian.org/debian/pool/main/m/m17n-lib/m17n-lib_1.8.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 98951f5 (2024-03-27 21:50:05 +0100) count: 380 365 elapsed-time: 17.2 20.8 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 1.39356s (avg. 1.39356s - 1 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.458675s (avg. 0.152892s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.281727s (avg. 0.093909s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.276126s (avg. 0.092042s - 3 result(s)) valueFlowUninit(tokenlist, errorLogger, settings): 0.157425s (avg. 0.052475s - 3 result(s)) Overall time: 1.57793s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 3.49251s (avg. 3.49251s - 1 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 1.49719s (avg. 0.499064s - 3 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, *settings): 0.675957s (avg. 0.225319s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.556144s (avg. 0.185381s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.447461s (avg. 0.149154s - 3 result(s)) Overall time: 3.66989s head results: m17n-lib-1.8.4/example/mimx-anthy.c:388:26: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/example/mimx-anthy.c:389:25: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/example/mimx-anthy.c:390:25: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/example/mimx-anthy.c:391:25: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/example/mdate.c:160:32: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] m17n-lib-1.8.4/example/mimx-ispell.c:238:30: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/intl/finddomain.c:61:30: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:243:54: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. m17n-lib-1.8.4/intl/finddomain.c:61:30: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. m17n-lib-1.8.4/intl/finddomain.c:61:45: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:243:71: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. m17n-lib-1.8.4/intl/finddomain.c:61:45: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. m17n-lib-1.8.4/intl/finddomain.c:62:16: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:244:19: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. m17n-lib-1.8.4/intl/finddomain.c:62:16: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. m17n-lib-1.8.4/intl/finddomain.c:62:44: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:245:23: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. m17n-lib-1.8.4/intl/finddomain.c:62:44: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. m17n-lib-1.8.4/example/mconv.c:153:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/example/mconv.c:300:25: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/intl/bindtextdom.c:232:12: style: Local variable 'len' shadows outer variable [shadowVariable] m17n-lib-1.8.4/intl/bindtextdom.c:204:14: note: Shadowed declaration m17n-lib-1.8.4/intl/bindtextdom.c:232:12: note: Shadow variable m17n-lib-1.8.4/intl/bindtextdom.c:261:15: style: Local variable 'len' shadows outer variable [shadowVariable] m17n-lib-1.8.4/intl/bindtextdom.c:204:14: note: Shadowed declaration m17n-lib-1.8.4/intl/bindtextdom.c:261:15: note: Shadow variable m17n-lib-1.8.4/intl/localcharset.c:358:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] m17n-lib-1.8.4/intl/localcharset.c:349:24: note: Assignment 'locale=NULL', assigned value is 0 m17n-lib-1.8.4/intl/localcharset.c:358:14: note: Condition 'locale==NULL' is always true m17n-lib-1.8.4/intl/l10nflist.c:321:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/intl/localealias.c:159:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/intl/localealias.c:261:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/intl/localealias.c:262:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/intl/localealias.c:175:41: error: Uninitialized variable: &item.value [uninitvar] m17n-lib-1.8.4/intl/os2compat.c:51:9: style: Variable 'root' can be declared as pointer to const [constVariablePointer] plural.c:945:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] plural.c:1036:3: style: The comparison '0 <= yystate' is always true. [knownConditionTrueFalse] plural.c:978:31: note: 'yystate' is assigned value '0' here. plural.c:1036:3: note: The comparison '0 <= yystate' is always true. plural.c:945:11: style: Variable 'yymsg' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/intl/loadmsgcat.c:861: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] m17n-lib-1.8.4/intl/loadmsgcat.c:791:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. m17n-lib-1.8.4/intl/loadmsgcat.c:861: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. m17n-lib-1.8.4/intl/loadmsgcat.c:780:42: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:247:47: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. m17n-lib-1.8.4/intl/loadmsgcat.c:780:42: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. m17n-lib-1.8.4/intl/loadmsgcat.c:781:20: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:248:25: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. m17n-lib-1.8.4/intl/loadmsgcat.c:781:20: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. m17n-lib-1.8.4/intl/dcigettext.c:650:14: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] m17n-lib-1.8.4/intl/dcigettext.c:697:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] m17n-lib-1.8.4/intl/dcigettext.c:487:25: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:80:46: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. m17n-lib-1.8.4/intl/dcigettext.c:487:25: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. m17n-lib-1.8.4/intl/dcigettext.c:487:49: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:81:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. m17n-lib-1.8.4/intl/dcigettext.c:487:49: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. m17n-lib-1.8.4/intl/dcigettext.c:487:69: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:81:40: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. m17n-lib-1.8.4/intl/dcigettext.c:487:69: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. m17n-lib-1.8.4/intl/dcigettext.c:488:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:82:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. m17n-lib-1.8.4/intl/dcigettext.c:488:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. m17n-lib-1.8.4/intl/dcigettext.c:488:36: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:82:38: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. m17n-lib-1.8.4/intl/dcigettext.c:488:36: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. m17n-lib-1.8.4/intl/dcigettext.c:488:43: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] m17n-lib-1.8.4/intl/gettextP.h:83:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. m17n-lib-1.8.4/intl/dcigettext.c:488:43: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. m17n-lib-1.8.4/intl/tsearch.c:184:8: style: Local variable 'root' shadows outer variable [shadowVariable] m17n-lib-1.8.4/intl/dcigettext.c:278:14: note: Shadowed declaration m17n-lib-1.8.4/intl/tsearch.c:184:8: note: Shadow variable m17n-lib-1.8.4/intl/tsearch.c:284:12: style: Local variable 'root' shadows outer variable [shadowVariable] m17n-lib-1.8.4/intl/dcigettext.c:278:14: note: Shadowed declaration m17n-lib-1.8.4/intl/tsearch.c:284:12: note: Shadow variable m17n-lib-1.8.4/intl/tsearch.c:345:12: style: Local variable 'root' shadows outer variable [shadowVariable] m17n-lib-1.8.4/intl/dcigettext.c:278:14: note: Shadowed declaration m17n-lib-1.8.4/intl/tsearch.c:345:12: note: Shadow variable m17n-lib-1.8.4/intl/tsearch.c:370:8: style: Local variable 'root' shadows outer variable [shadowVariable] m17n-lib-1.8.4/intl/dcigettext.c:278:14: note: Shadowed declaration m17n-lib-1.8.4/intl/tsearch.c:370:8: note: Shadow variable m17n-lib-1.8.4/intl/tsearch.c:620:14: style: Local variable 'root' shadows outer variable [shadowVariable] m17n-lib-1.8.4/intl/dcigettext.c:278:14: note: Shadowed declaration m17n-lib-1.8.4/intl/tsearch.c:620:14: note: Shadow variable m17n-lib-1.8.4/intl/tsearch.c:643:14: style: Local variable 'root' shadows outer variable [shadowVariable] m17n-lib-1.8.4/intl/dcigettext.c:278:14: note: Shadowed declaration m17n-lib-1.8.4/intl/tsearch.c:643:14: note: Shadow variable m17n-lib-1.8.4/intl/dcigettext.c:639:10: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/intl/dcigettext.c:1384:25: style: Variable 'domaindata' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/chartab.c:539:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/chartab.c:359:9: style: Variable 'default_value' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/chartab.c:411:44: style: Parameter 'ignore' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/chartab.c:697:34: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/chartab.c:713:34: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/charset.c:159:17: style: Variable 'parent' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/charset.c:368:11: style: Variable 'c2' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/charset.c:375:11: style: Variable 'c2' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/database.c:805:15: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/database.c:1295:25: warning: Function 'mdatabase_find' argument order different: declaration 'tag1, tag2, tag3, tag4' definition 'tag0, tag1, tag2, tag3' [funcArgOrderDifferent] m17n-lib-1.8.4/src/m17n-core.h:825:43: note: Function 'mdatabase_find' argument order different: declaration 'tag1, tag2, tag3, tag4' definition 'tag0, tag1, tag2, tag3' m17n-lib-1.8.4/src/database.c:1295:25: note: Function 'mdatabase_find' argument order different: declaration 'tag1, tag2, tag3, tag4' definition 'tag0, tag1, tag2, tag3' m17n-lib-1.8.4/src/database.c:1435:27: warning: Function 'mdatabase_define' argument order different: declaration 'tag1, tag2, tag3, tag4, , extra_info' definition 'tag0, tag1, tag2, tag3, loader, extra_info' [funcArgOrderDifferent] m17n-lib-1.8.4/src/m17n-core.h:838:45: note: Function 'mdatabase_define' argument order different: declaration 'tag1, tag2, tag3, tag4, , extra_info' definition 'tag0, tag1, tag2, tag3, loader, extra_info' m17n-lib-1.8.4/src/database.c:1435:27: note: Function 'mdatabase_define' argument order different: declaration 'tag1, tag2, tag3, tag4, , extra_info' definition 'tag0, tag1, tag2, tag3, loader, extra_info' m17n-lib-1.8.4/src/database.c:944:22: style: Local variable 'dir_info' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/database.c:867:18: note: Shadowed declaration m17n-lib-1.8.4/src/database.c:944:22: note: Shadow variable m17n-lib-1.8.4/src/database.c:963:12: style: Local variable 'p1' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/database.c:865:24: note: Shadowed declaration m17n-lib-1.8.4/src/database.c:963:12: note: Shadow variable m17n-lib-1.8.4/src/database.c:184:20: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/database.c:408:9: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/database.c:447:21: style: Parameter 'dirname' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/database.c:536:9: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/database.c:670:53: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/database.c:800:13: style: Variable 'home' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/database.c:964:11: style: Variable 'mt' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/database.c:1002:9: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/database.c:1093:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/database.c:1155:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/database.c:1215:18: style: Variable 'db_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/database.c:1526:27: style: Parameter 'mdb' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/intl/vasnprintf.c:4645:3: style: Label 'overflow' is not used. [unusedLabel] m17n-lib-1.8.4/intl/vasnprintf.c:4215:12: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/face.c:2075:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/face.c:154:27: style: Condition 'prop->inner_vmargin==box->inner_vmargin' is always true [knownConditionTrueFalse] m17n-lib-1.8.4/src/face.c:152:27: note: Assuming that condition 'prop->inner_vmargin==box->inner_vmargin' is not redundant m17n-lib-1.8.4/src/face.c:154:27: note: Condition 'prop->inner_vmargin==box->inner_vmargin' is always true m17n-lib-1.8.4/src/face.c:154:4: style: Same expression 'prop->inner_vmargin==box->inner_vmargin' found multiple times in chain of '&&' operators. [duplicateExpression] m17n-lib-1.8.4/src/face.c:637:19: style: Checking if unsigned expression 'font->size' is less than zero. [unsignedLessThanZero] m17n-lib-1.8.4/src/face.c:600:60: style:inconclusive: Function 'mface__realize' argument 4 names different: declaration 'limitted_size' definition 'size'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/face.h:121:15: note: Function 'mface__realize' argument 4 names different: declaration 'limitted_size' definition 'size'. m17n-lib-1.8.4/src/face.c:600:60: note: Function 'mface__realize' argument 4 names different: declaration 'limitted_size' definition 'size'. m17n-lib-1.8.4/src/face.c:114:35: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/face.c:136:31: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/face.c:167:43: style: Parameter 'face' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/face.c:167:56: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/face.c:1664:20: style: Parameter 'face' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/face.c:1691:19: style: Variable 'hline1' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/face.c:1691:28: style: Variable 'hline2' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/face.c:1692:17: style: Variable 'box1' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/face.c:1692:24: style: Variable 'box2' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/face.c:1875:24: style: Parameter 'face' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/face.c:398:31: error: Uninitialized variable: val [legacyUninitvar] m17n-lib-1.8.4/src/face.c:904:38: error: Uninitialized variable: from_g++->rface [legacyUninitvar] m17n-lib-1.8.4/src/face.c:245:15: style: struct member 'Anonymous3::func' is never used. [unusedStructMember] m17n-lib-1.8.4/src/font.c:1508:39: error: Using pointer to local variable 'resized' that is out of scope. [invalidLifetime] m17n-lib-1.8.4/src/font.c:1527:16: note: Address of variable taken here. m17n-lib-1.8.4/src/font.c:1520:14: note: Variable created here. m17n-lib-1.8.4/src/font.c:1508:39: note: Using pointer to local variable 'resized' that is out of scope. m17n-lib-1.8.4/src/font.c:1024:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/font.c:1038:13: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/font.c:1163:5: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/font.c:1170:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/font.c:1231:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/font.c:1864:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/font.c:1163:5: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] m17n-lib-1.8.4/src/font.c:1170:2: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] m17n-lib-1.8.4/src/font.c:1231:3: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] m17n-lib-1.8.4/src/font.c:1165:55: warning:inconclusive: Possible null pointer dereference: buf [nullPointer] m17n-lib-1.8.4/src/font.c:1157:24: note: Assignment 'buf=NULL', assigned value is 0 m17n-lib-1.8.4/src/font.c:1163:5: note: Assuming condition is false m17n-lib-1.8.4/src/font.c:1165:55: note: Null pointer dereference m17n-lib-1.8.4/src/font.c:865:22: style: Unsigned expression 'font->size' can't be negative so it is unnecessary to test it. [unsignedPositive] m17n-lib-1.8.4/src/font.c:2739:18: style: Checking if unsigned expression 'spec->size' is less than zero. [unsignedLessThanZero] m17n-lib-1.8.4/src/font.c:2981:17: style: Checking if unsigned expression 'spec.size' is less than zero. [unsignedLessThanZero] m17n-lib-1.8.4/src/font.c:1472:62: style:inconclusive: Function 'mfont__list' argument 4 names different: declaration 'limited_size' definition 'max_size'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/font.h:346:15: note: Function 'mfont__list' argument 4 names different: declaration 'limited_size' definition 'max_size'. m17n-lib-1.8.4/src/font.c:1472:62: note: Function 'mfont__list' argument 4 names different: declaration 'limited_size' definition 'max_size'. m17n-lib-1.8.4/src/font.c:2731:57: style:inconclusive: Function 'mfont_find' argument 4 names different: declaration 'limited_size' definition 'max_size'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n-gui.h:217:22: note: Function 'mfont_find' argument 4 names different: declaration 'limited_size' definition 'max_size'. m17n-lib-1.8.4/src/font.c:2731:57: note: Function 'mfont_find' argument 4 names different: declaration 'limited_size' definition 'max_size'. m17n-lib-1.8.4/src/font.c:1676:10: style: Local variable 'mfont' shadows outer function [shadowFunction] m17n-lib-1.8.4/src/m17n-gui.h:151:15: note: Shadowed declaration m17n-lib-1.8.4/src/font.c:1676:10: note: Shadow variable m17n-lib-1.8.4/src/font.c:1824:12: style: Local variable 'sym' shadows outer argument [shadowArgument] m17n-lib-1.8.4/src/font.c:1803:32: note: Shadowed declaration m17n-lib-1.8.4/src/font.c:1824:12: note: Shadow variable m17n-lib-1.8.4/src/font.c:658:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:751:13: style: Variable 'p0' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:976:9: style: Variable 'lang' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:976:23: style: Variable 'script' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:1157:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:1358:9: style: Variable 'reg' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:1407:10: style: Variable 'reg' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:1429:27: style: Parameter 'frame' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/font.c:1429:41: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/font.c:1644:36: style: Variable 'to_g' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:1806:19: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:2379:20: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/font.c:2969:35: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/font.c:3219:13: style: Variable 'lastslash' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/font.c:2364:10: error: Uninitialized variable: name [legacyUninitvar] m17n-lib-1.8.4/src/font.c:1044:7: style: Variable 'p' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/input-gui.c:737:9: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/input-gui.c:153:64: warning: Either the condition '!ic' is redundant or there is possible null pointer dereference: ic. [nullPointerRedundantCheck] m17n-lib-1.8.4/src/input-gui.c:156:7: note: Assuming that condition '!ic' is not redundant m17n-lib-1.8.4/src/input-gui.c:153:64: note: Null pointer dereference m17n-lib-1.8.4/src/input-gui.c:729:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/fontset.c:356:19: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/fontset.c:1473:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/fontset.c:850:6: style: Redundant assignment of 'request.property[MFONT_FAMILY]' to itself. [selfAssignment] m17n-lib-1.8.4/src/fontset.c:162:7: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] m17n-lib-1.8.4/src/fontset.c:238:7: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] m17n-lib-1.8.4/src/fontset.c:515:20: style: Checking if unsigned expression 'request.size' is less than zero. [unsignedLessThanZero] m17n-lib-1.8.4/src/fontset.c:1243:34: warning: Function 'mfontset_modify_entry' argument order different: declaration 'fontset, language, script, charset, spec, layouter_name, how' definition 'fontset, script, language, charset, spec, layouter_name, how' [funcArgOrderDifferent] m17n-lib-1.8.4/src/m17n-gui.h:256:45: note: Function 'mfontset_modify_entry' argument order different: declaration 'fontset, language, script, charset, spec, layouter_name, how' definition 'fontset, script, language, charset, spec, layouter_name, how' m17n-lib-1.8.4/src/fontset.c:1243:34: note: Function 'mfontset_modify_entry' argument order different: declaration 'fontset, language, script, charset, spec, layouter_name, how' definition 'fontset, script, language, charset, spec, layouter_name, how' m17n-lib-1.8.4/src/fontset.c:302:11: style: Variable 'per_script' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/fontset.c:504:24: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/fontset.c:752:13: style: Variable 'preferred_charset' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/fontset.c:1069:26: style: Parameter 'fontset' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/fontset.c:305:37: style: Variable 'per_script' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/language.c:832:9: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/language.c:263:29: style:inconclusive: Function 'mscript__char_list' argument 1 names different: declaration 'script' definition 'name'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/language.h:26:44: note: Function 'mscript__char_list' argument 1 names different: declaration 'script' definition 'name'. m17n-lib-1.8.4/src/language.c:263:29: note: Function 'mscript__char_list' argument 1 names different: declaration 'script' definition 'name'. m17n-lib-1.8.4/src/language.c:46:24: style: Variable 'p' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/language.c:232:11: style: Variable 'mt' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/language.c:820:10: style: Variable 'mt' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/draw.c:117:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/draw.c:118:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/draw.c:174:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/draw.c:1449:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/draw.c:1691:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/draw.c:127:4: style: Condition '!bidi_sensitive||1' is always true [knownConditionTrueFalse] m17n-lib-1.8.4/src/draw.c:1712:7: portability: %d in format string (no. 2) requires 'int' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] m17n-lib-1.8.4/src/draw.c:1712:7: warning: %d in format string (no. 10) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] m17n-lib-1.8.4/src/draw.c:1610:10: warning: Either the condition '!gstring->next' is redundant or there is possible null pointer dereference: gstring. [nullPointerRedundantCheck] m17n-lib-1.8.4/src/draw.c:1612:11: note: Assuming that condition '!gstring->next' is not redundant m17n-lib-1.8.4/src/draw.c:1614:24: note: Assignment 'gstring=gstring->next', assigned value is 0 m17n-lib-1.8.4/src/draw.c:1610:10: note: Null pointer dereference m17n-lib-1.8.4/src/draw.c:607:10: style: Redundant initialization for 'g'. The initialized value is overwritten before it is read. [redundantInitialization] m17n-lib-1.8.4/src/draw.c:600:13: note: g is initialized m17n-lib-1.8.4/src/draw.c:607:10: note: g is overwritten m17n-lib-1.8.4/src/draw.c:284:7: error: Expression 'gstring->glyphs[(gstring)->used++]=(*(gstring->glyphs+(0>=0?(0):(gstring->used+0))))' depends on order of evaluation of side effects [unknownEvaluationOrder] m17n-lib-1.8.4/src/draw.c:285:7: error: Expression 'gstring->glyphs[(gstring)->used++]=(*(gstring->glyphs+(0>=0?(0):(gstring->used+0))))' depends on order of evaluation of side effects [unknownEvaluationOrder] m17n-lib-1.8.4/src/draw.c:1013:20: error: Expression 'g++->g' depends on order of evaluation of side effects [unknownEvaluationOrder] m17n-lib-1.8.4/src/draw.c:1142:20: error: Expression 'g++->g' depends on order of evaluation of side effects [unknownEvaluationOrder] m17n-lib-1.8.4/src/draw.c:1178:18: error: Expression 'g++->g' depends on order of evaluation of side effects [unknownEvaluationOrder] m17n-lib-1.8.4/src/draw.c:2401:12: style:inconclusive: Function 'mdraw_coordinates_position' argument 5 names different: declaration 'x' definition 'x_offset'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n-gui.h:961:16: note: Function 'mdraw_coordinates_position' argument 5 names different: declaration 'x' definition 'x_offset'. m17n-lib-1.8.4/src/draw.c:2401:12: note: Function 'mdraw_coordinates_position' argument 5 names different: declaration 'x' definition 'x_offset'. m17n-lib-1.8.4/src/draw.c:2401:26: style:inconclusive: Function 'mdraw_coordinates_position' argument 6 names different: declaration 'y' definition 'y_offset'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n-gui.h:961:23: note: Function 'mdraw_coordinates_position' argument 6 names different: declaration 'y' definition 'y_offset'. m17n-lib-1.8.4/src/draw.c:2401:26: note: Function 'mdraw_coordinates_position' argument 6 names different: declaration 'y' definition 'y_offset'. m17n-lib-1.8.4/src/draw.c:1168:8: style: Local variable 'width' shadows outer argument [shadowArgument] m17n-lib-1.8.4/src/draw.c:1126:66: note: Shadowed declaration m17n-lib-1.8.4/src/draw.c:1168:8: note: Shadow variable m17n-lib-1.8.4/src/draw.c:338:18: style: Variable 'rfont' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/draw.c:601:11: style: Variable 'last_g' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/draw.c:640:17: style: Variable 'box' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/draw.c:711:19: style: Variable 'rfont' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/draw.c:994:24: style: Variable 'cursor' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/draw.c:1217:40: style: Parameter 'gstring' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/draw.c:1376:38: style: Parameter 'mt' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/draw.c:1665:38: style: Parameter 'gstring' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/draw.c:1692:25: style: Variable 'last_g' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/draw.c:275:14: style: Variable 'font.rfont' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/locale.c:105:9: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/locale.c:241:9: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/locale.c:478:24: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/locale.c:486:7: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/locale.c:361:40: style:inconclusive: Function 'mlocale_set' argument 2 names different: declaration 'locale' definition 'name'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n.h:822:56: note: Function 'mlocale_set' argument 2 names different: declaration 'locale' definition 'name'. m17n-lib-1.8.4/src/locale.c:361:40: note: Function 'mlocale_set' argument 2 names different: declaration 'locale' definition 'name'. m17n-lib-1.8.4/src/locale.c:163:31: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/locale.c:475:13: style: Variable 'str' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/locale.c:620:9: style: Variable 'str1' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/locale.c:620:16: style: Variable 'str2' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-core.c:444:15: style: Variable 'mt' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-core.c:506:23: style: Parameter 'env_name' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/m17n-core.c:508:9: style: Variable 'env_value' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-core.c:545:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/m17n-core.c:597:11: style: Variable 'env_value' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-gui.c:123:46: style: Parameter 'lib' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/m17n-gui.c:683:9: error: Uninitialized struct member: interface.open [uninitStructMember] m17n-lib-1.8.4/src/mtext-wseg.c:55:23: style: Parameter 'wordseg' can be declared as pointer to const. However it seems that 'generic_wordseg' is a callback function, if 'wordseg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] m17n-lib-1.8.4/src/mtext-wseg.c:383:23: note: You might need to cast the function pointer here m17n-lib-1.8.4/src/mtext-wseg.c:55:23: note: Parameter 'wordseg' can be declared as pointer to const m17n-lib-1.8.4/src/mtext.c:3637:31: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/mtext.c:3608:27: warning: Function 'mdebug_dump_mtext' argument order different: declaration 'mt, fullp, indent' definition 'mt, indent, fullp' [funcArgOrderDifferent] m17n-lib-1.8.4/src/m17n-misc.h:118:41: note: Function 'mdebug_dump_mtext' argument order different: declaration 'mt, fullp, indent' definition 'mt, indent, fullp' m17n-lib-1.8.4/src/mtext.c:3608:27: note: Function 'mdebug_dump_mtext' argument order different: declaration 'mt, fullp, indent' definition 'mt, indent, fullp' m17n-lib-1.8.4/src/mtext.c:1950:17: style: Local variable 'p' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/mtext.c:1896:18: note: Shadowed declaration m17n-lib-1.8.4/src/mtext.c:1950:17: note: Shadow variable m17n-lib-1.8.4/src/mtext.c:1957:20: style: Local variable 'p' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/mtext.c:1896:18: note: Shadowed declaration m17n-lib-1.8.4/src/mtext.c:1957:20: note: Shadow variable m17n-lib-1.8.4/src/mtext.c:170:22: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:170:27: style: Variable 'pend1' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:170:35: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:170:40: style: Variable 'pend2' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:420:18: style: Variable 'pend' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:448:19: style: Variable 'pend' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:1032:7: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:1084:7: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:1121:44: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/mtext.c:1347:22: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:1363:23: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:1381:17: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/mtext.c:1798:19: style: Parameter 'mt' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/input.c:1072:28: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/input.c:1086:28: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/input.c:1270:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/input.c:4375:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/input.c:4406:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/input.c:5208:19: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/input.c:6988:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/input.c:572:15: style: Condition 'name[2]=='\0'' is always false [knownConditionTrueFalse] m17n-lib-1.8.4/src/input.c:1278:5: error: Resource leak: handle [resourceLeak] m17n-lib-1.8.4/src/input.c:5544:18: style:inconclusive: Function 'minput_config_command' argument 4 names different: declaration 'keyseq' definition 'keyseqlist'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n.h:1371:32: note: Function 'minput_config_command' argument 4 names different: declaration 'keyseq' definition 'keyseqlist'. m17n-lib-1.8.4/src/input.c:5544:18: note: Function 'minput_config_command' argument 4 names different: declaration 'keyseq' definition 'keyseqlist'. m17n-lib-1.8.4/src/input.c:6343:22: style:inconclusive: Function 'minput_list' argument 1 names different: declaration 'lang' definition 'language'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n.h:1394:37: note: Function 'minput_list' argument 1 names different: declaration 'lang' definition 'language'. m17n-lib-1.8.4/src/input.c:6343:22: note: Function 'minput_list' argument 1 names different: declaration 'lang' definition 'language'. m17n-lib-1.8.4/src/input.c:6805:33: style:inconclusive: Function 'minput_assign_command_keys' argument 4 names different: declaration 'keys' definition 'keyseq'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n.h:1386:37: note: Function 'minput_assign_command_keys' argument 4 names different: declaration 'keys' definition 'keyseq'. m17n-lib-1.8.4/src/input.c:6805:33: note: Function 'minput_assign_command_keys' argument 4 names different: declaration 'keys' definition 'keyseq'. m17n-lib-1.8.4/src/input.c:2413:14: style: Local variable 'key' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/input.c:2339:10: note: Shadowed declaration m17n-lib-1.8.4/src/input.c:2413:14: note: Shadow variable m17n-lib-1.8.4/src/input.c:3670:16: style: Local variable 'key' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/input.c:3608:11: note: Shadowed declaration m17n-lib-1.8.4/src/input.c:3670:16: note: Shadow variable m17n-lib-1.8.4/src/input.c:3866:39: style: Local variable 'plist' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/input.c:3834:11: note: Shadowed declaration m17n-lib-1.8.4/src/input.c:3866:39: note: Shadow variable m17n-lib-1.8.4/src/input.c:3927:19: style: Local variable 'ic' shadows outer argument [shadowArgument] m17n-lib-1.8.4/src/input.c:3913:30: note: Shadowed declaration m17n-lib-1.8.4/src/input.c:3927:19: note: Shadow variable m17n-lib-1.8.4/src/input.c:3937:39: style: Local variable 'plist' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/input.c:3917:11: note: Shadowed declaration m17n-lib-1.8.4/src/input.c:3937:39: note: Shadow variable m17n-lib-1.8.4/src/input.c:703:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:741:13: style: Variable 'name' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:976:12: style: Variable 'mt' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:1532:22: style: Variable 'custom_dir_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:1752:52: style: Parameter 'current' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/input.c:2155:13: style: Variable 'valid_values' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:2711:26: style: Variable 'im_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:3044:11: style: Variable 'args' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:3476:10: style: Variable 'op' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:3604:21: style: Variable 'im_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:3757:21: style: Variable 'im_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:4033:21: style: Variable 'im_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:4124:21: style: Variable 'im_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:4146:15: style: Variable 'submap' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:4171:21: style: Variable 'im_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:4200:13: style: Variable 'candidate_list' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:4770:17: style: Variable 'driver' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:6400:21: style: Variable 'im_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:6871:25: style: Variable 'im_info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/input.c:4272:25: warning: Size of pointer 'keys' used instead of size of its data. [pointerSize] m17n-lib-1.8.4/src/input.c:4286:22: warning: Size of pointer 'keys' used instead of size of its data. [pointerSize] m17n-lib-1.8.4/src/input.c:3796:10: error: Uninitialized variable: stack [uninitvar] m17n-lib-1.8.4/src/input.c:287:19: style: Unused variable: pl [unusedVariable] m17n-lib-1.8.4/src/input.c:3419:14: style: Variable 'code' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/input.c:3788:10: style: Unused variable: produced [unusedVariable] m17n-lib-1.8.4/src/input.c:5631:14: style: Variable 'plist' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/input.c:5993:14: style: Variable 'plist' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/input.c:6281:9: style: Variable 'pl' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/input.c:6858:12: style: Variable 'from' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/input.c:6858:47: style: Variable 'start' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/plist.c:1663:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/plist.c:656:23: style: Variable 'end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/plist.c:673:13: style: Variable 'str' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/plist.c:951:10: style: Variable 'pl' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/plist.c:1422:44: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/plist.c:1540:21: style: Parameter 'plist' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/symbol.c:192:13: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/symbol.c:241:26: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/symbol.c:770:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/symbol.c:824:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/symbol.c:762:29: style:inconclusive: Function 'mdebug_dump_symbol' argument 1 names different: declaration 'sym' definition 'symbol'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n-misc.h:115:44: note: Function 'mdebug_dump_symbol' argument 1 names different: declaration 'sym' definition 'symbol'. m17n-lib-1.8.4/src/symbol.c:762:29: note: Function 'mdebug_dump_symbol' argument 1 names different: declaration 'sym' definition 'symbol'. m17n-lib-1.8.4/src/symbol.c:766:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:1647:4: error: Address of local auto-variable assigned to a function parameter. [autoVariables] m17n-lib-1.8.4/src/m17n-flt.c:2378:4: error: Address of local auto-variable assigned to a function parameter. [autoVariables] m17n-lib-1.8.4/src/m17n-flt.c:510:9: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:851:19: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:1784:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:1939:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:2294:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:2295:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:2377:4: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:2409:19: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:3098:7: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:3139:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:3215:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/m17n-flt.c:2514:19: warning: Either the condition 'g=((struct MFLTGlyph*)((char*)(ctx->out->glyphs)+(ctx->out)->glyph_size*(i)))' is redundant or there is possible null pointer dereference: g. [nullPointerRedundantCheck] m17n-lib-1.8.4/src/m17n-flt.c:2468:15: note: Assuming that condition 'g=((struct MFLTGlyph*)((char*)(ctx->out->glyphs)+(ctx->out)->glyph_size*(i)))' is not redundant m17n-lib-1.8.4/src/m17n-flt.c:2514:19: note: Null pointer dereference m17n-lib-1.8.4/src/m17n-flt.c:2515:18: warning: Either the condition 'g=((struct MFLTGlyph*)((char*)(ctx->out->glyphs)+(ctx->out)->glyph_size*(i)))' is redundant or there is possible null pointer dereference: g. [nullPointerRedundantCheck] m17n-lib-1.8.4/src/m17n-flt.c:2468:15: note: Assuming that condition 'g=((struct MFLTGlyph*)((char*)(ctx->out->glyphs)+(ctx->out)->glyph_size*(i)))' is not redundant m17n-lib-1.8.4/src/m17n-flt.c:2515:18: note: Null pointer dereference m17n-lib-1.8.4/src/m17n-flt.c:1099:9: style: Local variable 'i' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/m17n-flt.c:972:7: note: Shadowed declaration m17n-lib-1.8.4/src/m17n-flt.c:1099:9: note: Shadow variable m17n-lib-1.8.4/src/m17n-flt.c:2315:15: style: Local variable 'g' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/m17n-flt.c:2284:14: note: Shadowed declaration m17n-lib-1.8.4/src/m17n-flt.c:2315:15: note: Shadow variable m17n-lib-1.8.4/src/m17n-flt.c:2658:7: style: Local variable 'mdebug_flag' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/m17n-flt.c:247:12: note: Shadowed declaration m17n-lib-1.8.4/src/m17n-flt.c:2658:7: note: Shadow variable m17n-lib-1.8.4/src/m17n-flt.c:2694:7: style: Local variable 'mdebug_flag' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/m17n-flt.c:247:12: note: Shadowed declaration m17n-lib-1.8.4/src/m17n-flt.c:2694:7: note: Shadow variable m17n-lib-1.8.4/src/m17n-flt.c:328:28: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/m17n-flt.c:546:12: style: Variable 'next' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:686:36: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/m17n-flt.c:724:36: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/m17n-flt.c:845:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:896:32: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/m17n-flt.c:1075:14: style: Variable 'str' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:1139:12: style: Variable 'otf_spec' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:1192:13: style: Variable 'name' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:1299:17: style: Variable 'pl' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:1387:9: style: Variable 'otf_spec' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:1465:23: style: Parameter 'flt' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/m17n-flt.c:1819:15: style: Variable 'g' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:1852:23: style: Parameter 'cond' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/m17n-flt.c:1981:25: style: Variable 'aa' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:2016:13: style: Variable 'g' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:2075:9: style: Variable 'vallign' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:2076:9: style: Variable 'hallign' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:2121:7: style: Variable 'src' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:2141:15: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:2190:2: style: Variable 'src' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:2245:2: style: Variable 'src' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:2286:23: style: Variable 'prev_category' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:3153:23: style: Variable 'rule' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:3177:23: style: Variable 'cond' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:3255:18: style: Variable 'g' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/m17n-flt.c:999:4: error: Uninitialized variable: dummy [legacyUninitvar] m17n-lib-1.8.4/src/m17n-flt.c:999:4: error: Uninitialized struct member: dummy.type [uninitStructMember] m17n-lib-1.8.4/src/m17n-flt.c:766:16: style: Unused variable: script [unusedVariable] m17n-lib-1.8.4/src/m17n-flt.c:766:24: style: Unused variable: langsys [unusedVariable] m17n-lib-1.8.4/src/m17n-flt.c:997:18: style: Variable 'dummy' is not assigned a value. [unassignedVariable] m17n-lib-1.8.4/src/m17n-flt.c:2975:18: style: Variable 'this_from' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/coding.c:477:7: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/coding.c:510:40: style: Condition 'setup_coding_charset(coding)<0' is always false [knownConditionTrueFalse] m17n-lib-1.8.4/src/coding.c:510:31: note: Calling function 'setup_coding_charset' returns 0 m17n-lib-1.8.4/src/coding.c:510:40: note: Condition 'setup_coding_charset(coding)<0' is always false m17n-lib-1.8.4/src/coding.c:3022:41: style:inconclusive: Function 'mconv__register_charset_coding' argument 1 names different: declaration 'name' definition 'sym'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/coding.h:26:53: note: Function 'mconv__register_charset_coding' argument 1 names different: declaration 'name' definition 'sym'. m17n-lib-1.8.4/src/coding.c:3022:41: note: Function 'mconv__register_charset_coding' argument 1 names different: declaration 'name' definition 'sym'. m17n-lib-1.8.4/src/coding.c:4099:33: style:inconclusive: Function 'mconv_buffer_converter' argument 1 names different: declaration 'coding' definition 'name'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n.h:729:52: note: Function 'mconv_buffer_converter' argument 1 names different: declaration 'coding' definition 'name'. m17n-lib-1.8.4/src/coding.c:4099:33: note: Function 'mconv_buffer_converter' argument 1 names different: declaration 'coding' definition 'name'. m17n-lib-1.8.4/src/coding.c:4178:33: style:inconclusive: Function 'mconv_stream_converter' argument 1 names different: declaration 'coding' definition 'name'. [funcArgNamesDifferent] m17n-lib-1.8.4/src/m17n.h:733:52: note: Function 'mconv_stream_converter' argument 1 names different: declaration 'coding' definition 'name'. m17n-lib-1.8.4/src/coding.c:4178:33: note: Function 'mconv_stream_converter' argument 1 names different: declaration 'coding' definition 'name'. m17n-lib-1.8.4/src/coding.c:367:69: style: Parameter 'dst_end' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/coding.c:371:9: style: Variable 'format' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:425:22: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:527:18: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:532:13: style: Variable 'code_charset_table' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:604:24: style: Variable 'src_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:728:18: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:805:18: style: Variable 'coding' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:806:24: style: Variable 'src_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:808:18: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:887:19: style: Variable 'info' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:930:21: style: Variable 'internal' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:936:18: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:1034:21: style: Variable 'internal' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:1040:18: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:1124:24: style: Variable 'src_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:1126:18: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:1212:24: style: Variable 'src_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:1214:18: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:1516:40: style: Parameter 'charset_name' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/coding.c:1540:18: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:1544:25: style: Variable 'spec' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2146:51: style: Parameter 'coding' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/coding.c:2151:23: style: Parameter 'dst_end' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/coding.c:2174:7: style: Variable 'intermediate_char_94' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2229:27: style: Parameter 'dst_end' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/coding.c:2256:2: style: Variable 'intermediate_char_94' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2275:24: style: Variable 'src_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2284:23: style: Variable 'charset0' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2284:34: style: Variable 'charset1' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2290:13: style: Variable 'non_standard_charset' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2448:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2511:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2665:18: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:2748:24: style: Variable 'src_end' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/coding.c:4791:62: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/coding.c:2468:11: style: Variable 'p' is assigned a value that is never used. [unreadVariable] m17n-lib-1.8.4/src/textprop.c:313:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/textprop.c:1124:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/textprop.c:1145:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] m17n-lib-1.8.4/src/textprop.c:2251:9: style: Condition 'nprops' is always true [knownConditionTrueFalse] m17n-lib-1.8.4/src/textprop.c:1133:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] m17n-lib-1.8.4/src/textprop.c:1133:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] m17n-lib-1.8.4/src/textprop.c:1307:18: style: Local variable 'interval' shadows outer variable [shadowVariable] m17n-lib-1.8.4/src/textprop.c:1294:14: note: Shadowed declaration m17n-lib-1.8.4/src/textprop.c:1307:18: note: Shadow variable m17n-lib-1.8.4/src/textprop.c:450:22: style: Variable 'prop' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/textprop.c:451:22: style: Variable 'old' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/textprop.c:677:14: style: Variable 'cache' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/textprop.c:712:23: style: Variable 'prop' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/textprop.c:725:23: style: Variable 'prop' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/textprop.c:742:23: style: Variable 'prop' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/textprop.c:1122:27: style: Parameter 'interval' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/textprop.c:1703:18: style: Variable 'interval' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/textprop.c:2229:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] m17n-lib-1.8.4/src/textprop.c:2321:38: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/textprop.c:2339:36: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/textprop.c:2357:38: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/textprop.c:2848:25: style: Parameter 'mt' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/textprop.c:2848:55: style: Parameter 'property_list' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/textprop.c:2997:27: style: Parameter 'mt' can be declared as pointer to const [constParameterPointer] m17n-lib-1.8.4/src/textprop.c:176:9: style: struct member 'MTextPlist::modification_hook' is never used. [unusedStructMember] m17n-lib-1.8.4/src/textprop.c:2122:7: style: Variable 'from' is assigned a value that is never used. [unreadVariable] diff: head m17n-lib-1.8.4/example/mimx-anthy.c:388:26: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] head m17n-lib-1.8.4/example/mimx-anthy.c:389:25: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] head m17n-lib-1.8.4/example/mimx-anthy.c:390:25: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] head m17n-lib-1.8.4/example/mimx-anthy.c:391:25: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] head m17n-lib-1.8.4/example/mimx-ispell.c:238:30: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] head m17n-lib-1.8.4/src/coding.c:2174:7: style: Variable 'intermediate_char_94' can be declared as pointer to const [constVariablePointer] head m17n-lib-1.8.4/src/coding.c:2256:2: style: Variable 'intermediate_char_94' can be declared as pointer to const [constVariablePointer] head m17n-lib-1.8.4/src/draw.c:127:4: style: Condition '!bidi_sensitive||1' is always true [knownConditionTrueFalse] head m17n-lib-1.8.4/src/font.c:1163:5: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] head m17n-lib-1.8.4/src/font.c:1231:3: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] head m17n-lib-1.8.4/src/font.c:1429:27: style: Parameter 'frame' can be declared as pointer to const [constParameterPointer] head m17n-lib-1.8.4/src/font.c:1429:41: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] head m17n-lib-1.8.4/src/fontset.c:850:6: style: Redundant assignment of 'request.property[MFONT_FAMILY]' to itself. [selfAssignment] 2.13.0 m17n-lib-1.8.4/src/fontset.c:850:6: warning: Redundant assignment of 'request.property[MFONT_FAMILY]' to itself. [selfAssignment] head m17n-lib-1.8.4/src/textprop.c:2848:25: style: Parameter 'mt' can be declared as pointer to const [constParameterPointer] head m17n-lib-1.8.4/src/textprop.c:2848:55: style: Parameter 'property_list' can be declared as pointer to const [constParameterPointer] head m17n-lib-1.8.4/src/textprop.c:2997:27: style: Parameter 'mt' can be declared as pointer to const [constParameterPointer] DONE