2025-05-08 14:21 ftp://ftp.de.debian.org/debian/pool/main/u/ucimf-sunpinyin/ucimf-sunpinyin_0.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --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: 66c9938 (2025-05-08 13:55:11 +0200) count: 19 19 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: ucimf-sunpinyin-0.5/src/sunpinyin.cpp:79:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS2003 [valueFlowBailoutIncompleteVar] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:119:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IM_VK_ENTER [valueFlowBailoutIncompleteVar] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:156:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IM_VK_UP [valueFlowBailoutIncompleteVar] ucimf-sunpinyin-0.5/src/sunpinyin.h:21:8: performance:inconclusive: Either there is a missing 'override', or the member function 'UcimfWindowHandler::switch_im' can be static. [functionStatic] ucimf-sunpinyin-0.5/src/sunpinyin.h:22:8: performance:inconclusive: Either there is a missing 'override', or the member function 'UcimfWindowHandler::switch_im_reverse' can be static. [functionStatic] ucimf-sunpinyin-0.5/src/sunpinyin.h:23:8: performance:inconclusive: Either there is a missing 'override', or the member function 'UcimfWindowHandler::switch_lang' can be static. [functionStatic] ucimf-sunpinyin-0.5/src/sunpinyin.h:24:8: performance:inconclusive: Either there is a missing 'override', or the member function 'UcimfWindowHandler::switch_im_per_lang' can be static. [functionStatic] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:236:24: warning: Logical conjunction always evaluates to false: keyvalue < 0x20 && keyvalue > 0x7E. [incorrectLogicOperator] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:86:7: style: Condition 'bUseShuangpin' is always false [knownConditionTrueFalse] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:78:23: note: Assignment 'bUseShuangpin=false', assigned value is 0 ucimf-sunpinyin-0.5/src/sunpinyin.cpp:86:7: note: Condition 'bUseShuangpin' is always false ucimf-sunpinyin-0.5/src/sunpinyin.cpp:105:28: style: C-style pointer casting [cstyleCast] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:136:57: style:inconclusive: Function 'process_input' argument 1 names different: declaration 'input' definition 'buf'. [funcArgNamesDifferent] ucimf-sunpinyin-0.5/src/sunpinyin.h:19:49: note: Function 'process_input' argument 1 names different: declaration 'input' definition 'buf'. ucimf-sunpinyin-0.5/src/sunpinyin.cpp:136:57: note: Function 'process_input' argument 1 names different: declaration 'input' definition 'buf'. ucimf-sunpinyin-0.5/src/sunpinyin.cpp:147:14: style: Variable 'modifier' is assigned a value that is never used. [unreadVariable] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:157:11: style: Variable 'modifier' is assigned a value that is never used. [unreadVariable] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:163:11: style: Variable 'modifier' is assigned a value that is never used. [unreadVariable] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:169:11: style: Variable 'modifier' is assigned a value that is never used. [unreadVariable] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:175:11: style: Variable 'modifier' is assigned a value that is never used. [unreadVariable] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:189:11: style: Variable 'modifier' is assigned a value that is never used. [unreadVariable] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:195:11: style: Variable 'modifier' is assigned a value that is never used. [unreadVariable] ucimf-sunpinyin-0.5/src/sunpinyin.cpp:205:14: style: Variable 'modifier' is assigned a value that is never used. [unreadVariable] diff: DONE