2025-05-07 22:11 ftp://ftp.de.debian.org/debian/pool/main/s/scim-canna/scim-canna_1.0.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 172 170 elapsed-time: 10.9 10.3 head-timing-info: old-timing-info: head results: scim-canna-1.0.0/intl/bindtextdom.c:226:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/bindtextdom.c:252:12: style: Local variable 'len' shadows outer variable [shadowVariable] scim-canna-1.0.0/intl/bindtextdom.c:224:14: note: Shadowed declaration scim-canna-1.0.0/intl/bindtextdom.c:252:12: note: Shadow variable scim-canna-1.0.0/intl/bindtextdom.c:283:15: style: Local variable 'len' shadows outer variable [shadowVariable] scim-canna-1.0.0/intl/bindtextdom.c:224:14: note: Shadowed declaration scim-canna-1.0.0/intl/bindtextdom.c:283:15: note: Shadow variable scim-canna-1.0.0/intl/eval-plural.h:52:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lor [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/dcigettext.c:545:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/dcigettext.c:544:10: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] scim-canna-1.0.0/intl/dcigettext.c:583:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] scim-canna-1.0.0/intl/dcigettext.c:427:25: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:207:46: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. scim-canna-1.0.0/intl/dcigettext.c:427:25: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. scim-canna-1.0.0/intl/dcigettext.c:427:49: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:208:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. scim-canna-1.0.0/intl/dcigettext.c:427:49: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. scim-canna-1.0.0/intl/dcigettext.c:427:69: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:208:40: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. scim-canna-1.0.0/intl/dcigettext.c:427:69: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. scim-canna-1.0.0/intl/dcigettext.c:428:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:209:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. scim-canna-1.0.0/intl/dcigettext.c:428:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. scim-canna-1.0.0/intl/dcigettext.c:428:36: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:209:38: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. scim-canna-1.0.0/intl/dcigettext.c:428:36: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. scim-canna-1.0.0/intl/dcigettext.c:428:43: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:210:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. scim-canna-1.0.0/intl/dcigettext.c:428:43: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. scim-canna-1.0.0/intl/dcigettext.c:533:13: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] scim-canna-1.0.0/intl/dcigettext.c:224:9: style: struct member 'known_translation_t::domainname' is never used. [unusedStructMember] scim-canna-1.0.0/intl/dcigettext.c:227:7: style: struct member 'known_translation_t::category' is never used. [unusedStructMember] scim-canna-1.0.0/intl/dcigettext.c:230:7: style: struct member 'known_translation_t::counter' is never used. [unusedStructMember] scim-canna-1.0.0/intl/dcigettext.c:233:27: style: struct member 'known_translation_t::domain' is never used. [unusedStructMember] scim-canna-1.0.0/intl/dcigettext.c:236:15: style: struct member 'known_translation_t::translation' is never used. [unusedStructMember] scim-canna-1.0.0/intl/dcigettext.c:237:10: style: struct member 'known_translation_t::translation_length' is never used. [unusedStructMember] scim-canna-1.0.0/intl/dcigettext.c:240:8: style: struct member 'known_translation_t::msgid' is never used. [unusedStructMember] scim-canna-1.0.0/intl/dgettext.c:52:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/dngettext.c:53:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/finddomain.c:50:30: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:157:54: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. scim-canna-1.0.0/intl/finddomain.c:50:30: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. scim-canna-1.0.0/intl/finddomain.c:50:45: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:157:71: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. scim-canna-1.0.0/intl/finddomain.c:50:45: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. scim-canna-1.0.0/intl/finddomain.c:51:16: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:158:19: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. scim-canna-1.0.0/intl/finddomain.c:51:16: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. scim-canna-1.0.0/intl/finddomain.c:51:44: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:159:23: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. scim-canna-1.0.0/intl/finddomain.c:51:44: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. scim-canna-1.0.0/intl/gettext.c:57:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/l10nflist.c:341:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] scim-canna-1.0.0/intl/loadmsgcat.c:940:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/loadmsgcat.c:982:2: error: Resource leak: fd [resourceLeak] scim-canna-1.0.0/intl/loadmsgcat.c:975: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] scim-canna-1.0.0/intl/loadmsgcat.c:919:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. scim-canna-1.0.0/intl/loadmsgcat.c:975: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. scim-canna-1.0.0/intl/loadmsgcat.c:771:47: style:inconclusive: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:166:59: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. scim-canna-1.0.0/intl/loadmsgcat.c:771:47: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. scim-canna-1.0.0/intl/loadmsgcat.c:772:31: style:inconclusive: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:167:29: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. scim-canna-1.0.0/intl/loadmsgcat.c:772:31: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. scim-canna-1.0.0/intl/loadmsgcat.c:773:25: style:inconclusive: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:168:23: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. scim-canna-1.0.0/intl/loadmsgcat.c:773:25: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. scim-canna-1.0.0/intl/loadmsgcat.c:889:45: style:inconclusive: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:170:50: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. scim-canna-1.0.0/intl/loadmsgcat.c:889:45: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. scim-canna-1.0.0/intl/loadmsgcat.c:909:42: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:161:47: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. scim-canna-1.0.0/intl/loadmsgcat.c:909:42: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. scim-canna-1.0.0/intl/loadmsgcat.c:910:20: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] scim-canna-1.0.0/intl/gettextP.h:162:25: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. scim-canna-1.0.0/intl/loadmsgcat.c:910:20: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. scim-canna-1.0.0/intl/localcharset.c:119:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/localcharset.c:295:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] scim-canna-1.0.0/intl/localcharset.c:286:24: note: Assignment 'locale=NULL', assigned value is 0 scim-canna-1.0.0/intl/localcharset.c:295:14: note: Condition 'locale==NULL' is always true scim-canna-1.0.0/intl/localcharset.c:181:5: error: Common realloc mistake: 'res_ptr' nulled but not freed upon failure [memleakOnRealloc] scim-canna-1.0.0/intl/localealias.c:163:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALE_ALIAS_PATH [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/localealias.c:154:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] scim-canna-1.0.0/intl/localealias.c:254:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] scim-canna-1.0.0/intl/localealias.c:255:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] scim-canna-1.0.0/intl/localealias.c:172:41: error: Uninitialized variable: &item.value [uninitvar] scim-canna-1.0.0/intl/ngettext.c:59:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/os2compat.c:60:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/os2compat.c:61:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_libdir [nullPointerOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:60:43: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:61:19: note: Null pointer dereference scim-canna-1.0.0/intl/os2compat.c:75:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localealiaspath [nullPointerOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:74:52: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:75:19: note: Null pointer dereference scim-canna-1.0.0/intl/os2compat.c:89:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:88:46: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:89:19: note: Null pointer dereference scim-canna-1.0.0/intl/os2compat.c:96:15: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:88:46: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:96:15: note: Null pointer dereference scim-canna-1.0.0/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:60:43: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:62:33: note: Null pointer addition scim-canna-1.0.0/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:74:52: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:76:42: note: Null pointer addition scim-canna-1.0.0/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:88:46: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:90:36: note: Null pointer addition scim-canna-1.0.0/intl/os2compat.c:51:9: style: Variable 'root' can be declared as pointer to const [constVariablePointer] plural.y:160:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable qmop [valueFlowBailoutIncompleteVar] plural.y:276:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] /usr/local/share/bison/bison.simple:517:36: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] /usr/local/share/bison/bison.simple:515:9: style: Variable 'yyss1' can be declared as pointer to const [constVariablePointer] scim-canna-1.0.0/intl/xsize.h:60:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/printf-parse.c:146:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/vasnprintf.c:117:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/printf.c:116:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/intl/vasnprintf.c:744:12: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] scim-canna-1.0.0/src/canna_jrkanji.cpp:70:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KC_SETINITFILENAME [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/canna_jrkanji.cpp:104:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KC_CLOSEUICONTEXT [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/canna_jrkanji.cpp:202:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CANNA_KEY_Insert [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/canna_jrkanji.cpp:342:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCIM_ATTR_DECORATE [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/canna_jrkanji.cpp:372:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KanjiThroughInfo [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/canna_jrkanji.cpp:439:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CANNA_MODE_ZenHiraHenkanMode [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/canna_jrkanji.cpp:482:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KC_QUERYMAXMODESTR [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/canna_jrkanji.cpp:498:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KanjiGLineInfo [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/canna_jrkanji.cpp:562:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KC_KILL [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/canna_jrkanji.cpp:518:15: style:inconclusive: Technically the member function 'CannaJRKanji::preedit_string_visible' can be const. [functionConst] scim-canna-1.0.0/src/canna_jrkanji.h:46:19: note: Technically the member function 'CannaJRKanji::preedit_string_visible' can be const. scim-canna-1.0.0/src/canna_jrkanji.cpp:518:15: note: Technically the member function 'CannaJRKanji::preedit_string_visible' can be const. scim-canna-1.0.0/src/canna_jrkanji.cpp:545:15: style:inconclusive: Technically the member function 'CannaJRKanji::aux_string_visible' can be const. [functionConst] scim-canna-1.0.0/src/canna_jrkanji.h:48:19: note: Technically the member function 'CannaJRKanji::aux_string_visible' can be const. scim-canna-1.0.0/src/canna_jrkanji.cpp:545:15: note: Technically the member function 'CannaJRKanji::aux_string_visible' can be const. scim-canna-1.0.0/src/canna_jrkanji.cpp:192:15: performance:inconclusive: Technically the member function 'CannaJRKanji::translate_key_event' can be static (but you may consider moving to unnamed namespace). [functionStatic] scim-canna-1.0.0/src/canna_jrkanji.h:53:19: note: Technically the member function 'CannaJRKanji::translate_key_event' can be static (but you may consider moving to unnamed namespace). scim-canna-1.0.0/src/canna_jrkanji.cpp:192:15: note: Technically the member function 'CannaJRKanji::translate_key_event' can be static (but you may consider moving to unnamed namespace). scim-canna-1.0.0/src/canna_jrkanji.h:39:5: style: Class 'CannaJRKanji' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] scim-canna-1.0.0/src/canna_jrkanji.cpp:70:52: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:75:50: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:78:43: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:93:50: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:104:54: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:326:24: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:328:26: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:392:32: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:471:54: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:484:52: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:486:33: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:502:26: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:533:28: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:562:44: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/canna_jrkanji.cpp:58:12: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] scim-canna-1.0.0/src/canna_jrkanji.cpp:60:7: note: Found duplicate branches for 'if' and 'else'. scim-canna-1.0.0/src/canna_jrkanji.cpp:58:12: note: Found duplicate branches for 'if' and 'else'. scim-canna-1.0.0/src/canna_jrkanji.cpp:54:27: style: The scope of the variable 'p' can be reduced. [variableScope] scim-canna-1.0.0/src/canna_jrkanji.cpp:119:51: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] scim-canna-1.0.0/src/scim_canna_imengine.cpp:73:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCIM_KEY_Shift_L [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/scim_canna_imengine_factory.cpp:138:21: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:311:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILL [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:349:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILL [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:727:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:405:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:457:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:482:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:280:37: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:281:5: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:306:43: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:308:33: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:309:31: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:310:27: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:313:40: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:314:40: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:317:5: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:320:22: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:321:23: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:321:42: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:329:50: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:332:12: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:346:29: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:347:27: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:348:23: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:354:36: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:358:29: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:360:22: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:361:23: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:361:42: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:365:24: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:367:24: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:369:5: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:376:50: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:379:12: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:391:23: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:393:5: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:413:37: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:414:25: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:421:24: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:423:62: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:425:5: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:432:37: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:433:25: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:440:24: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:442:59: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:444:5: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:461:25: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:466:19: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:469:49: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:471:31: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:501:28: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:502:27: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:503:25: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:519:34: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:525:31: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:531:31: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:537:31: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:540:36: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:541:36: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:556:29: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:560:37: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:569:29: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:578:43: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:587:33: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:669:52: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:679:25: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:693:29: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:699:46: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:723:33: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:725:34: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:733:51: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:734:37: style: C-style pointer casting [cstyleCast] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:135:23: style: struct member 'KeyboardConfigPage::label' is never used. [unusedStructMember] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:136:23: style: struct member 'KeyboardConfigPage::data' is never used. [unusedStructMember] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:141:17: style: struct member 'ComboConfigData::label' is never used. [unusedStructMember] scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:142:17: style: struct member 'ComboConfigData::data' is never used. [unusedStructMember] diff: 2.17.0 scim-canna-1.0.0/intl/os2compat.c:62:33: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:60:43: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:62:33: note: Null pointer addition head scim-canna-1.0.0/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:60:43: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:62:33: note: Null pointer addition 2.17.0 scim-canna-1.0.0/intl/os2compat.c:76:42: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:74:52: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:76:42: note: Null pointer addition head scim-canna-1.0.0/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:74:52: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:76:42: note: Null pointer addition 2.17.0 scim-canna-1.0.0/intl/os2compat.c:90:36: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:88:46: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:90:36: note: Null pointer addition head scim-canna-1.0.0/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] scim-canna-1.0.0/intl/os2compat.c:88:46: note: Assuming allocation function fails scim-canna-1.0.0/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 scim-canna-1.0.0/intl/os2compat.c:90:36: note: Null pointer addition head scim-canna-1.0.0/src/canna_jrkanji.cpp:192:15: performance:inconclusive: Technically the member function 'CannaJRKanji::translate_key_event' can be static (but you may consider moving to unnamed namespace). [functionStatic] scim-canna-1.0.0/src/canna_jrkanji.h:53:19: note: Technically the member function 'CannaJRKanji::translate_key_event' can be static (but you may consider moving to unnamed namespace). scim-canna-1.0.0/src/canna_jrkanji.cpp:192:15: note: Technically the member function 'CannaJRKanji::translate_key_event' can be static (but you may consider moving to unnamed namespace). head scim-canna-1.0.0/src/canna_jrkanji.cpp:518:15: style:inconclusive: Technically the member function 'CannaJRKanji::preedit_string_visible' can be const. [functionConst] scim-canna-1.0.0/src/canna_jrkanji.h:46:19: note: Technically the member function 'CannaJRKanji::preedit_string_visible' can be const. scim-canna-1.0.0/src/canna_jrkanji.cpp:518:15: note: Technically the member function 'CannaJRKanji::preedit_string_visible' can be const. head scim-canna-1.0.0/src/canna_jrkanji.cpp:545:15: style:inconclusive: Technically the member function 'CannaJRKanji::aux_string_visible' can be const. [functionConst] scim-canna-1.0.0/src/canna_jrkanji.h:48:19: note: Technically the member function 'CannaJRKanji::aux_string_visible' can be const. scim-canna-1.0.0/src/canna_jrkanji.cpp:545:15: note: Technically the member function 'CannaJRKanji::aux_string_visible' can be const. 2.17.0 scim-canna-1.0.0/src/canna_jrkanji.h:46:19: style:inconclusive: Technically the member function 'CannaJRKanji::preedit_string_visible' can be const. [functionConst] scim-canna-1.0.0/src/canna_jrkanji.cpp:518:15: note: Technically the member function 'CannaJRKanji::preedit_string_visible' can be const. scim-canna-1.0.0/src/canna_jrkanji.h:46:19: note: Technically the member function 'CannaJRKanji::preedit_string_visible' can be const. 2.17.0 scim-canna-1.0.0/src/canna_jrkanji.h:48:19: style:inconclusive: Technically the member function 'CannaJRKanji::aux_string_visible' can be const. [functionConst] scim-canna-1.0.0/src/canna_jrkanji.cpp:545:15: note: Technically the member function 'CannaJRKanji::aux_string_visible' can be const. scim-canna-1.0.0/src/canna_jrkanji.h:48:19: note: Technically the member function 'CannaJRKanji::aux_string_visible' can be const. 2.17.0 scim-canna-1.0.0/src/canna_jrkanji.h:53:19: performance:inconclusive: Technically the member function 'CannaJRKanji::translate_key_event' can be static (but you may consider moving to unnamed namespace). [functionStatic] scim-canna-1.0.0/src/canna_jrkanji.cpp:192:15: note: Technically the member function 'CannaJRKanji::translate_key_event' can be static (but you may consider moving to unnamed namespace). scim-canna-1.0.0/src/canna_jrkanji.h:53:19: note: Technically the member function 'CannaJRKanji::translate_key_event' can be static (but you may consider moving to unnamed namespace). head scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:321:42: style: C-style pointer casting [cstyleCast] head scim-canna-1.0.0/src/scim_canna_imengine_setup.cpp:361:42: style: C-style pointer casting [cstyleCast] DONE