2026-05-05 22:04 ftp://ftp.de.debian.org/debian/pool/main/x/xhk/xhk_1.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 15 15 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: xhk-xhk-v1.2/src/xhk.c:111:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XTestExtensionName [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:131:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIDetachSlave [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:144:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIAttachSlave [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:170:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XI_KeyPress [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:405:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIKeyRepeat [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:435:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GenericEvent [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:462:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIAllDevices [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:507:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIAllDevices [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:545:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadRequest [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:653:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadRequest [valueFlowBailoutIncompleteVar] xhk-xhk-v1.2/src/xhk.c:69:36: style: Parameter 'd' can be declared as pointer to const. However it seems that 'ioErrorHandler' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xhk-xhk-v1.2/src/xhk.c:191:25: note: You might need to cast the function pointer here xhk-xhk-v1.2/src/xhk.c:69:36: note: Parameter 'd' can be declared as pointer to const xhk-xhk-v1.2/src/xhk.c:382:73: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] xhk-xhk-v1.2/src/xhk.c:401:71: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] xhk-xhk-v1.2/src/xhk.c:460:29: style: Variable 'device' can be declared as pointer to const [constVariablePointer] xhk-xhk-v1.2/src/xhk.c:505:29: style: Variable 'device' can be declared as pointer to const [constVariablePointer] diff: DONE