2024-04-23 07:31 ftp://ftp.de.debian.org/debian/pool/main/x/xf86-input-mtrack/xf86-input-mtrack_0.3.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=motif --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.14.0 head-info: 642cdfd (2024-04-23 07:24:14 +0200) count: 89 89 elapsed-time: 0.7 0.7 head-timing-info: old-timing-info: head results: xf86-input-mtrack-0.3.1/driver/mtrack.c:129:0: error: #error "Unsupported ABI_XINPUT_VERSION" [preprocessorErrorDirective] xf86-input-mtrack-0.3.1/src/capabilities.c:54:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_POSITION_X [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:72:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fuzz [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:79:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_MAX [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:126:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_POSITION_X [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:132:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_POSITION_Y [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:138:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_TOUCH_MAJOR [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:144:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_POSITION_X [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:150:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_POSITION_Y [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:156:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_POSITION_X [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:162:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_POSITION_Y [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/capabilities.c:176:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_INFO [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/driver/mprops.c:65:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/driver/mprops.c:72:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/driver/mprops.c:82:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XATOM_FLOAT [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/driver/mprops.c:207:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_INTEGER [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/gestures.c:53:107: error: syntax error [syntaxError] xf86-input-mtrack-0.3.1/src/hwstate.c:27:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HWState [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/hwstate.c:40:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_TOUCH_MINOR [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/hwstate.c:62:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MT_BUTTON_LEFT [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/hwstate.c:127:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tracking_id [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/mconfig.c:27:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_TOUCH_DOWN [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/mconfig.c:85:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTDEV_TOUCH_MINOR [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/mconfig.c:123:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_TOUCH_DOWN [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/mtouch.c:50:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVIOCGRAB [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/mtouch.c:66:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVIOCGRAB [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/mtstate.c:198:2: error: There is an unknown macro here somewhere. Configuration is required. If foreach_bit is a macro then please configure it. [unknownMacro] xf86-input-mtrack-0.3.1/src/trig.c:45:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TR_NONE [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/trig.c:54:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TR_NONE [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/src/trig.c:90:32: style: Parameter 'angles' can be declared as pointer to const [constParameterPointer] xf86-input-mtrack-0.3.1/tools/mtrack-test.c:31:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/tools/mtrack-test.c:78:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/tools/mtrack-test.c:103:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-mtrack-0.3.1/tools/mtrack-test.c:100:26: style: Parameter 'argv' can be declared as const array [constParameter] xf86-input-mtrack-0.3.1/driver/mprops.c:211:19: style: Comparing expression of type 'unsigned char' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:244:8: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:278:74: style: Comparing expression of type 'unsigned short' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:296:8: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:332:8: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:418:38: style: Comparing expression of type 'unsigned short' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:451:8: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:486:8: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:521:8: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:556:8: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:589:8: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] xf86-input-mtrack-0.3.1/driver/mprops.c:211:17: style: Checking if unsigned expression 'ivals8[0]' is less than zero. [unsignedLessThanZero] xf86-input-mtrack-0.3.1/driver/mprops.c:244:8: style: Unsigned expression 'ivals8[0]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:244:34: style: Unsigned expression 'ivals8[1]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:278:72: style: Checking if unsigned expression 'ivals16[2]' is less than zero. [unsignedLessThanZero] xf86-input-mtrack-0.3.1/driver/mprops.c:296:8: style: Unsigned expression 'ivals8[0]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:296:36: style: Unsigned expression 'ivals8[1]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:296:64: style: Unsigned expression 'ivals8[2]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:332:8: style: Unsigned expression 'ivals8[0]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:332:36: style: Unsigned expression 'ivals8[1]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:332:64: style: Unsigned expression 'ivals8[2]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:332:92: style: Unsigned expression 'ivals8[3]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:368:18: style: Checking if unsigned expression 'ivals32[0]' is less than zero. [unsignedLessThanZero] xf86-input-mtrack-0.3.1/driver/mprops.c:368:26: style: Unsigned expression 'ivals32[1]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:402:18: style: Checking if unsigned expression 'ivals32[0]' is less than zero. [unsignedLessThanZero] xf86-input-mtrack-0.3.1/driver/mprops.c:418:36: style: Checking if unsigned expression 'ivals16[1]' is less than zero. [unsignedLessThanZero] xf86-input-mtrack-0.3.1/driver/mprops.c:451:8: style: Unsigned expression 'ivals8[0]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:451:36: style: Unsigned expression 'ivals8[1]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:451:64: style: Unsigned expression 'ivals8[2]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:451:92: style: Unsigned expression 'ivals8[3]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:486:8: style: Unsigned expression 'ivals8[0]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:486:36: style: Unsigned expression 'ivals8[1]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:486:64: style: Unsigned expression 'ivals8[2]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:486:92: style: Unsigned expression 'ivals8[3]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:521:8: style: Unsigned expression 'ivals8[0]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:521:36: style: Unsigned expression 'ivals8[1]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:521:64: style: Unsigned expression 'ivals8[2]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:521:92: style: Unsigned expression 'ivals8[3]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:556:8: style: Unsigned expression 'ivals8[0]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:556:36: style: Unsigned expression 'ivals8[1]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:556:64: style: Unsigned expression 'ivals8[2]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:556:92: style: Unsigned expression 'ivals8[3]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:589:8: style: Unsigned expression 'ivals8[0]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:589:36: style: Unsigned expression 'ivals8[1]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:589:64: style: Unsigned expression 'ivals8[2]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:589:92: style: Unsigned expression 'ivals8[3]' can't be negative so it is unnecessary to test it. [unsignedPositive] xf86-input-mtrack-0.3.1/driver/mprops.c:606:63: style: Checking if unsigned expression 'ivals32[2]' is less than zero. [unsignedLessThanZero] xf86-input-mtrack-0.3.1/driver/mprops.c:606:81: style: Checking if unsigned expression 'ivals32[3]' is less than zero. [unsignedLessThanZero] xf86-input-mtrack-0.3.1/driver/mprops.c:35:72: style: Parameter 'values' can be declared as pointer to const [constParameterPointer] xf86-input-mtrack-0.3.1/driver/mprops.c:78:34: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] xf86-input-mtrack-0.3.1/driver/mprops.c:201:11: style: Variable 'ivals8' can be declared as pointer to const [constVariablePointer] xf86-input-mtrack-0.3.1/driver/mprops.c:202:12: style: Variable 'ivals16' can be declared as pointer to const [constVariablePointer] xf86-input-mtrack-0.3.1/driver/mprops.c:203:12: style: Variable 'ivals32' can be declared as pointer to const [constVariablePointer] xf86-input-mtrack-0.3.1/driver/mprops.c:204:9: style: Variable 'fvals' can be declared as pointer to const [constVariablePointer] xf86-input-mtrack-0.3.1/driver/mprops.c:261:8: error: Uninitialized variable: ivals16 [legacyUninitvar] diff: DONE