2024-04-25 09:25 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=gtk --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: da380ea (2024-04-25 10:28:43 +0200) count: 25 25 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: 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/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/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