2026-05-27 16:55 ftp://ftp.de.debian.org/debian/pool/main/l/lomoco/lomoco_1.0.0.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 -j8 platform: Linux-6.17.0-29-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 6e46c6b (2026-05-27 18:39:55 +0200) count: 23 23 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: lomoco-1.0/src/cmdline.c:142:18: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] lomoco-1.0/src/lomoco.c:84:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_VENDOR [valueFlowBailoutIncompleteVar] lomoco-1.0/src/lomoco.c:220:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_VENDOR [valueFlowBailoutIncompleteVar] lomoco-1.0/src/lomoco.c:257:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_VENDOR [valueFlowBailoutIncompleteVar] lomoco-1.0/src/lomoco.c:292:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] lomoco-1.0/src/lomoco.c:396:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_VENDOR [valueFlowBailoutIncompleteVar] lomoco-1.0/src/lomoco.c:485:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_VENDOR [valueFlowBailoutIncompleteVar] lomoco-1.0/src/lomoco.c:516:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_VENDOR [valueFlowBailoutIncompleteVar] lomoco-1.0/src/lomoco.c:700:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usb_busses [valueFlowBailoutIncompleteVar] lomoco-1.0/src/lomoco.c:87:13: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] lomoco-1.0/src/lomoco.c:223:13: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] lomoco-1.0/src/lomoco.c:260:14: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] lomoco-1.0/src/lomoco.c:435:14: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] lomoco-1.0/src/lomoco.c:453:14: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] lomoco-1.0/src/lomoco.c:701:7: style: Condition '!scan_bus(bus)' is always false [knownConditionTrueFalse] lomoco-1.0/src/lomoco.c:701:16: note: Calling function 'scan_bus' returns 1 lomoco-1.0/src/lomoco.c:701:7: note: Condition '!scan_bus(bus)' is always false lomoco-1.0/src/lomoco.c:296:9: warning: Either the condition '(fd=open(usbhid_mousepoll,O_RDONLY))!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] lomoco-1.0/src/lomoco.c:292:46: note: Assuming that condition '(fd=open(usbhid_mousepoll,O_RDONLY))!=-1' is not redundant lomoco-1.0/src/lomoco.c:296:9: note: Invalid argument lomoco-1.0/src/lomoco.c:311:8: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] lomoco-1.0/src/lomoco.c:311:8: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] lomoco-1.0/src/lomoco.c:313:8: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] lomoco-1.0/src/lomoco.c:251:32: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] lomoco-1.0/src/lomoco.c:582:58: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] lomoco-1.0/src/lomoco.c:604:31: style: Parameter 'bus' can be declared as pointer to const [constParameterPointer] lomoco-1.0/src/lomoco.c:288:24: style: Variable 'interval' is assigned a value that is never used. [unreadVariable] diff: DONE