2025-05-05 06:19 ftp://ftp.de.debian.org/debian/pool/main/k/kbdd/kbdd_0.6.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 25 25 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: kbdd-0.6/src/kbdd.c:305:20: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] kbdd-0.6/src/dbus/m-kbdd-service.c:29:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_kbdd_service_parent_class [valueFlowBailoutIncompleteVar] kbdd-0.6/src/dbus/m-kbdd-service.c:53:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] kbdd-0.6/src/dbus/m-kbdd-service.c:82:36: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] kbdd-0.6/src/dbus/m-kbdd-service.c:129:42: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] kbdd-0.6/src/dbus/m-kbdd-service.c:144:42: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] kbdd-0.6/src/dbus/m-kbdd-service.c:151:42: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] kbdd-0.6/src/dbus/m-kbdd-service.c:158:41: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] kbdd-0.6/src/dbus/m-kbdd-service.c:195:29: style: Variable 'klass' can be declared as pointer to const [constVariablePointer] kbdd-0.6/src/dbus/m-kbdd-service.c:208:41: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] kbdd-0.6/src/dbus/m-kbdd-service.c:40:9: style: Unused variable: i [unusedVariable] kbdd-0.6/src/libkbdd.c:132:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbMajorVersion [valueFlowBailoutIncompleteVar] kbdd-0.6/src/libkbdd.c:268:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotifyGrab [valueFlowBailoutIncompleteVar] kbdd-0.6/src/libkbdd.c:286:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotifyGrab [valueFlowBailoutIncompleteVar] kbdd-0.6/src/libkbdd.c:303:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MappingKeyboard [valueFlowBailoutIncompleteVar] kbdd-0.6/src/libkbdd.c:400:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbUseCoreKbd [valueFlowBailoutIncompleteVar] kbdd-0.6/src/libkbdd.c:422:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbUseCoreKbd [valueFlowBailoutIncompleteVar] kbdd-0.6/src/libkbdd.c:449:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbUseCoreKbd [valueFlowBailoutIncompleteVar] kbdd-0.6/src/libkbdd.c:508:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbUseCoreKbd [valueFlowBailoutIncompleteVar] kbdd-0.6/src/libkbdd.c:527:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbAllControlsMask [valueFlowBailoutIncompleteVar] kbdd-0.6/src/libkbdd.c:559:11: style: Checking if unsigned expression 'id' is less than zero. [unsignedLessThanZero] kbdd-0.6/src/libkbdd.c:345:23: style: Parameter 'dpy' can be declared as pointer to const. However it seems that '_xerrordummy' is a callback function, if 'dpy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kbdd-0.6/src/libkbdd.c:381:30: note: You might need to cast the function pointer here kbdd-0.6/src/libkbdd.c:345:23: note: Parameter 'dpy' can be declared as pointer to const kbdd-0.6/src/libkbdd.c:345:41: style: Parameter 'ee' can be declared as pointer to const. However it seems that '_xerrordummy' is a callback function, if 'ee' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kbdd-0.6/src/libkbdd.c:381:30: note: You might need to cast the function pointer here kbdd-0.6/src/libkbdd.c:345:41: note: Parameter 'ee' can be declared as pointer to const kbdd-0.6/src/libkbdd.c:61:9: style: struct member '_KbddStructure::haveNames' is never used. [unusedStructMember] kbdd-0.6/src/libkbdd.c:207:12: style: Unused variable: focused_win [unusedVariable] diff: DONE