2025-11-24 20:13 ftp://ftp.de.debian.org/debian/pool/main/x/xf86-input-wacom/xf86-input-wacom_1.2.3.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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 193 297 elapsed-time: 1.9 4.4 head-timing-info: old-timing-info: head results: xf86-input-wacom-1.2.3/src/gwacom/wacom-driver.c:53:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/xf86Wacom.h:41:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [syntaxError] xf86-input-wacom-1.2.3/src/gwacom/wacom-driver.c:98:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wacom_driver_parent_class [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-driver.c:104:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wacom_driver_parent_class [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-driver.c:44:15: style: Variable 'driver' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-driver.c:73:39: style: Parameter 'driver' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-driver.c:146:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:75:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WacomOptions [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:110:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:147:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wacom_options_parent_class [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:161:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GHashTable [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:235:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:309:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:350:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:392:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:431:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:665:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:720:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WacomDevice [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:763:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wacom_device_parent_class [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:772:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wacom_device_parent_class [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:826:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READABLE [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:675:2: error: Resource leak: fd [resourceLeak] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:751:1: error: Memory leak: hotplug [memleak] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:751:1: error: Memory leak: hotplug.name [memleak] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1006:9: warning: If memory allocation fails, then there is a possible null pointer dereference: new_axis [nullPointerOutOfMemory] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1005:30: note: Assuming allocation function fails xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1005:30: note: Assignment 'new_axis=malloc(sizeof(*axis))', assigned value is 0 xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1006:9: note: Null pointer dereference xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1018:9: warning: If memory allocation fails, then there is a possible null pointer dereference: new_event_data [nullPointerOutOfMemory] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1017:41: note: Assuming allocation function fails xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1017:41: note: Assignment 'new_event_data=malloc(sizeof(*event_data))', assigned value is 0 xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1018:9: note: Null pointer dereference xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:101:44: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1015:61: style:inconclusive: Function 'wacom_event_data_copy' argument 1 names different: declaration 'data' definition 'event_data'. [funcArgNamesDifferent] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.h:134:61: note: Function 'wacom_event_data_copy' argument 1 names different: declaration 'data' definition 'event_data'. xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1015:61: note: Function 'wacom_event_data_copy' argument 1 names different: declaration 'data' definition 'event_data'. xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1022:44: style:inconclusive: Function 'wacom_event_data_free' argument 1 names different: declaration 'data' definition 'event_data'. [funcArgNamesDifferent] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.h:135:44: note: Function 'wacom_event_data_free' argument 1 names different: declaration 'data' definition 'event_data'. xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:1022:44: note: Function 'wacom_event_data_free' argument 1 names different: declaration 'data' definition 'event_data'. xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:93:35: style: Parameter 'key' can be declared as pointer to const. However it seems that 'copy_options' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:102:33: note: You might need to cast the function pointer here xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:93:35: note: Parameter 'key' can be declared as pointer to const xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:93:49: style: Parameter 'value' can be declared as pointer to const. However it seems that 'copy_options' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:102:33: note: You might need to cast the function pointer here xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:93:49: note: Parameter 'value' can be declared as pointer to const xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:291:51: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:295:42: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:300:53: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:305:51: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:325:15: style: Variable 'device' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:610:40: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:615:48: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:620:55: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:633:47: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:637:45: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:641:47: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:645:52: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:649:48: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:653:44: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:703:87: style: Parameter 'userdata' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:777:33: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'wacom_device_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:804:31: note: You might need to cast the function pointer here xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:777:33: note: Parameter 'pspec' can be declared as pointer to const xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:779:15: style: Variable 'self' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:999:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:84:3: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] xf86-input-wacom-1.2.3/src/x11/xf86Wacom.c:820:0: error: failed to evaluate #if condition, undefined function-like macro invocation: SET_ABI_VERSION( ... ) [syntaxError] xf86-input-wacom-1.2.3/test/wacom-test-suite.c:21:0: error: #error "Expected ENABLE_TESTS to be defined" [preprocessorErrorDirective] xf86-input-wacom-1.2.3/test/wacom-tests.c:33:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/test/wacom-tests.c:41:3: error: Resource leak: handle [resourceLeak] xf86-input-wacom-1.2.3/test/wacom-tests.c:46:2: error: Resource leak: handle [resourceLeak] xf86-input-wacom-1.2.3/tools/isdv4-serial-debugger.c:84:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/isdv4-serial-debugger.c:59:8: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/tools/isdv4-serial-debugger.c:66:16: style: Variable 'options' can be declared as const array [constVariable] xf86-input-wacom-1.2.3/tools/isdv4-serial-inputattach.c:52:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/isdv4-serial-inputattach.c:60:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCSETD [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/pressurecurve.c:60:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/isdv4-serial-inputattach.c:72:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERIO_W8001 [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/isdv4-serial-inputattach.c:152:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/pressurecurve.c:59:23: style: Variable 'long_options' can be declared as const array [constVariable] xf86-input-wacom-1.2.3/tools/isdv4-serial-inputattach.c:72:21: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] xf86-input-wacom-1.2.3/tools/isdv4-serial-inputattach.c:72:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] xf86-input-wacom-1.2.3/tools/isdv4-serial-inputattach.c:128:8: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/tools/isdv4-serial-inputattach.c:134:16: style: Variable 'options' can be declared as const array [constVariable] xf86-input-wacom-1.2.3/tools/tools-shared.c:54:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:81:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNBRK [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:124:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:142:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ISDV4_STOP [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:161:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ISDV4_SAMPLING [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:166:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:202:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HEADER_BIT [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:223:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:271:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ISDV4_PKGLEN_TPCCTL [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:347:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ISDV4_RESET [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:368:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ISDV4_PKGLEN_TPCPEN [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:392:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:414:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ISDV4_PKGLEN_TPCPEN [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:96:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_INTEGER [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:145:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WCM_MAX_BUTTONS [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:179:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WCM_MAX_BUTTONS [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:312:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadAtom [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:366:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadMatch [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:445:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:479:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_ATOM [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:521:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadValue [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:594:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_INTEGER [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:610:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:668:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:681:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadValue [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:980:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_INTEGER [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:1034:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/wacom-record.c:66:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _WAXIS_LAST [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/wacom-record.c:185:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/wacom-record.c:271:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/wacom-record.c:306:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/wacom-record.c:329:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/wacom-record.c:337:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WacomDriver [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/tools-shared.c:144:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xf86-input-wacom-1.2.3/tools/tools-shared.c:198:36: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/tools/tools-shared.c:486:12: style: Variable 'garbage' is assigned a value that is never used. [unreadVariable] xf86-input-wacom-1.2.3/tools/wacom-record.c:306:50: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] xf86-input-wacom-1.2.3/tools/wacom-record.c:398:57: note: Assuming allocation function fails xf86-input-wacom-1.2.3/tools/wacom-record.c:398:38: note: Assignment 'path=(autopath)?autopath:strdup(*argv)', assigned value is 0 xf86-input-wacom-1.2.3/tools/wacom-record.c:399:43: note: Calling function 'get_device_name', 1st argument 'path' value is 0 xf86-input-wacom-1.2.3/tools/wacom-record.c:306:50: note: Null pointer dereference xf86-input-wacom-1.2.3/tools/wacom-record.c:160:10: style: Local variable 'opts' shadows outer variable [shadowVariable] xf86-input-wacom-1.2.3/tools/wacom-record.c:40:21: note: Shadowed declaration xf86-input-wacom-1.2.3/tools/wacom-record.c:160:10: note: Shadow variable xf86-input-wacom-1.2.3/tools/wacom-record.c:169:10: style: Local variable 'key' shadows outer function [shadowFunction] xf86-input-wacom-1.2.3/tools/wacom-record.c:133:13: note: Shadowed declaration xf86-input-wacom-1.2.3/tools/wacom-record.c:169:10: note: Shadow variable xf86-input-wacom-1.2.3/tools/wacom-record.c:218:16: style: Local variable 'typestr' shadows outer variable [shadowVariable] xf86-input-wacom-1.2.3/tools/wacom-record.c:191:15: note: Shadowed declaration xf86-input-wacom-1.2.3/tools/wacom-record.c:218:16: note: Shadow variable xf86-input-wacom-1.2.3/tools/wacom-record.c:103:81: style: Parameter 'data' can be declared as pointer to const. However it seems that 'proximity' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-input-wacom-1.2.3/tools/wacom-record.c:178:2: note: You might need to cast the function pointer here xf86-input-wacom-1.2.3/tools/wacom-record.c:103:81: note: Parameter 'data' can be declared as pointer to const xf86-input-wacom-1.2.3/tools/wacom-record.c:112:79: style: Parameter 'data' can be declared as pointer to const. However it seems that 'motion' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-input-wacom-1.2.3/tools/wacom-record.c:177:2: note: You might need to cast the function pointer here xf86-input-wacom-1.2.3/tools/wacom-record.c:112:79: note: Parameter 'data' can be declared as pointer to const xf86-input-wacom-1.2.3/tools/wacom-record.c:123:41: style: Parameter 'data' can be declared as pointer to const. However it seems that 'button' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-input-wacom-1.2.3/tools/wacom-record.c:179:2: note: You might need to cast the function pointer here xf86-input-wacom-1.2.3/tools/wacom-record.c:123:41: note: Parameter 'data' can be declared as pointer to const xf86-input-wacom-1.2.3/tools/xsetwacom.c:613:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:828:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUILD_VERSION [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:857:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:894:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:943:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:974:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1009:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1022:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1112:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1122:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1139:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1149:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1203:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1243:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbRedirectIntoRange [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1270:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1331:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1395:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1478:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1527:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1612:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1654:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1693:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Absolute [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1731:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1821:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1835:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1981:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2013:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2087:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2192:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2229:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2298:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2333:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2400:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2466:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2501:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2556:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2624:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2668:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2710:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WACOM_PROP_BUTTON_ACTIONS [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2750:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2787:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2916:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2982:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2247:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2248:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1391:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1407:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1446:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2356:16: portability: Casting between unsigned long * and float * which have an incompatible binary data representation. [invalidPointerCast] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2408:4: portability: Casting between signed long * and float * which have an incompatible binary data representation. [invalidPointerCast] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1629:53: style: Checking if unsigned expression 'offset' is less than zero. [unsignedLessThanZero] xf86-input-wacom-1.2.3/tools/xsetwacom.c:730:38: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:741:34: style: Parameter 'param' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:775:41: style: Parameter 'param' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:831:53: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:992:33: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:994:11: style: Variable 'param' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1005:19: style: Variable 'm' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1072:19: style: Variable 'm' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1161:19: style: Variable 'kw' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1179:9: style: Variable 'btn' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1391:9: style: Variable 'tok' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:1691:58: style: Parameter 'param' can be declared as pointer to const. However it seems that 'set_mode' is a callback function, if 'param' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-input-wacom-1.2.3/tools/xsetwacom.c:196:15: note: You might need to cast the function pointer here xf86-input-wacom-1.2.3/tools/xsetwacom.c:1691:58: note: Parameter 'param' can be declared as pointer to const xf86-input-wacom-1.2.3/tools/xsetwacom.c:1964:44: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'get_mode' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-input-wacom-1.2.3/tools/xsetwacom.c:197:15: note: You might need to cast the function pointer here xf86-input-wacom-1.2.3/tools/xsetwacom.c:1964:44: note: Parameter 'dev' can be declared as pointer to const xf86-input-wacom-1.2.3/tools/xsetwacom.c:2488:65: style: Parameter 'output_name' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2660:60: style: Parameter 'param' can be declared as pointer to const. However it seems that 'set_output' is a callback function, if 'param' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-input-wacom-1.2.3/tools/xsetwacom.c:549:15: note: You might need to cast the function pointer here xf86-input-wacom-1.2.3/tools/xsetwacom.c:2660:60: note: Parameter 'param' can be declared as pointer to const xf86-input-wacom-1.2.3/tools/xsetwacom.c:2848:11: style: Variable 'ldata' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2936:16: style: Variable 'options' can be declared as const array [constVariable] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2247:7: style: Variable 'argc' is assigned a value that is never used. [unreadVariable] xf86-input-wacom-1.2.3/tools/xsetwacom.c:2248:8: style: Variable 'argv' is assigned a value that is never used. [unreadVariable] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:869:53: style: The statement 'if (common->wcmGestureParameters.wcmZoomDistance!=values[0]) common->wcmGestureParameters.wcmZoomDistance=values[0]' is logically equivalent to 'common->wcmGestureParameters.wcmZoomDistance=values[0]'. [duplicateConditionalAssign] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:870:50: note: Assignment 'common->wcmGestureParameters.wcmZoomDistance=values[0]' xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:869:53: note: Condition 'common->wcmGestureParameters.wcmZoomDistance!=values[0]' is redundant xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:871:55: style: The statement 'if (common->wcmGestureParameters.wcmScrollDistance!=values[1]) common->wcmGestureParameters.wcmScrollDistance=values[1]' is logically equivalent to 'common->wcmGestureParameters.wcmScrollDistance=values[1]'. [duplicateConditionalAssign] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:872:52: note: Assignment 'common->wcmGestureParameters.wcmScrollDistance=values[1]' xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:871:55: note: Condition 'common->wcmGestureParameters.wcmScrollDistance!=values[1]' is redundant xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:873:48: style: The statement 'if (common->wcmGestureParameters.wcmTapTime!=values[2]) common->wcmGestureParameters.wcmTapTime=values[2]' is logically equivalent to 'common->wcmGestureParameters.wcmTapTime=values[2]'. [duplicateConditionalAssign] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:874:45: note: Assignment 'common->wcmGestureParameters.wcmTapTime=values[2]' xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:873:48: note: Condition 'common->wcmGestureParameters.wcmTapTime!=values[2]' is redundant xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:536:5: style: Variable 'index' is assigned an expression that holds the same value. [redundantAssignment] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:529:13: note: index is assigned 'i' here. xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:536:5: note: Variable 'index' is assigned an expression that holds the same value. xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:141:102: style: Parameter 'values' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:303:45: style: Parameter 'prop_list' can be declared as pointer to const [constParameterPointer] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:726:11: style: Variable 'values' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:823:10: style: Variable 'values' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:848:10: style: Variable 'values' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:860:11: style: Variable 'values' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:878:10: style: Variable 'values' can be declared as pointer to const [constVariablePointer] xf86-input-wacom-1.2.3/src/x11/xf86WacomProperties.c:915:10: style: Variable 'values' can be declared as pointer to const [constVariablePointer] diff: head xf86-input-wacom-1.2.3/src/gwacom/wacom-device.c:751:1: error: Memory leak: hotplug.name [memleak] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:1130:26: style:inconclusive: Function 'wcmEvent' argument 3 names different: declaration 'ds' definition 'pState'. [funcArgNamesDifferent] xf86-input-wacom-1.2.3/src/xf86Wacom.h:112:84: note: Function 'wcmEvent' argument 3 names different: declaration 'ds' definition 'pState'. xf86-input-wacom-1.2.3/src/wcmCommon.c:1130:26: note: Function 'wcmEvent' argument 3 names different: declaration 'ds' definition 'pState'. 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:1175:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:1363:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:1379:20: style: Variable 'ds' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:1383:19: style: Variable 'raw_pressure' is assigned a value that is never used. [unreadVariable] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:146:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WACOM_AXIS_SCROLL_X [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:1568:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:166:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AC_BUTTON [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:1687:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROTATE_NONE [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:1706:36: style:inconclusive: Function 'wcmFreeCommon' argument 1 names different: declaration 'common' definition 'ptr'. [funcArgNamesDifferent] xf86-input-wacom-1.2.3/src/xf86Wacom.h:158:43: note: Function 'wcmFreeCommon' argument 1 names different: declaration 'common' definition 'ptr'. xf86-input-wacom-1.2.3/src/wcmCommon.c:1706:36: note: Function 'wcmFreeCommon' argument 1 names different: declaration 'common' definition 'ptr'. 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:174:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AC_BUTTON [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:183:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AC_BUTTON [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:201:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:279:21: style: Condition 'buttons&1' is always true [knownConditionTrueFalse] xf86-input-wacom-1.2.3/src/wcmCommon.c:273:21: note: Assuming that condition '(buttons&1)==0' is not redundant xf86-input-wacom-1.2.3/src/wcmCommon.c:279:21: note: Condition 'buttons&1' is always true 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:315:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_PROG1 [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:347:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AC_CODE [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:370:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AC_TYPE [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:449:40: style:inconclusive: Function 'sendAButton' argument 1 names different: declaration 'pDev' definition 'priv'. [funcArgNamesDifferent] xf86-input-wacom-1.2.3/src/wcmCommon.c:54:40: note: Function 'sendAButton' argument 1 names different: declaration 'pDev' definition 'priv'. xf86-input-wacom-1.2.3/src/wcmCommon.c:449:40: note: Function 'sendAButton' argument 1 names different: declaration 'pDev' definition 'priv'. 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:623:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WACOM_AXIS_X [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:647:6: style: Condition 'from_width' is always true [knownConditionTrueFalse] xf86-input-wacom-1.2.3/src/wcmCommon.c:1295:17: note: Assuming that condition 'range_left>=1' is not redundant xf86-input-wacom-1.2.3/src/wcmCommon.c:1296:49: note: Calling function 'wcmScaleAxis', 4th argument 'range_left' value is 1 xf86-input-wacom-1.2.3/src/wcmCommon.c:1296:61: note: Calling function 'wcmScaleAxis', 5th argument '0' value is 0 xf86-input-wacom-1.2.3/src/wcmCommon.c:645:32: note: Assignment 'from_width=from_max-from_min', assigned value is greater than 0 xf86-input-wacom-1.2.3/src/wcmCommon.c:647:6: note: Condition 'from_width' is always true 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:687:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROTATE_CW [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:752:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WACOM_AXIS_X [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmCommon.c:878:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WACOM_AXIS_X [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:1008:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:1129:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WACOM_AXIS_X [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:1268:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:1293:6: style: Condition '!wcmInitAxes(priv,use_smooth_panscrolling)' is always false [knownConditionTrueFalse] xf86-input-wacom-1.2.3/src/wcmConfig.c:1293:18: note: Calling function 'wcmInitAxes' returns 1 xf86-input-wacom-1.2.3/src/wcmConfig.c:1293:6: note: Condition '!wcmInitAxes(priv,use_smooth_panscrolling)' is always false 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:1305:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:163:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:269:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:299:32: style: Parameter 'devicename' can be declared as pointer to const [constParameterPointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:381:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:446:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:457:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:472:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:554:37: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:559:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:607:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_PROBED [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:616:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:711:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_INFO [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:712:11: style: Condition 'is_test_suite_run' is always true [knownConditionTrueFalse] xf86-input-wacom-1.2.3/src/wcmConfig.c:710:6: note: Assuming that condition 'is_test_device' is not redundant xf86-input-wacom-1.2.3/src/wcmConfig.c:707:21: note: Assuming that condition 'is_test_device==is_test_suite_run' is not redundant xf86-input-wacom-1.2.3/src/wcmConfig.c:712:11: note: Condition 'is_test_suite_run' is always true 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:905:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INPUT_PROP_DIRECT [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmConfig.c:985:6: style: Condition '!wcmMatchDevice(priv,&common)' is always true [knownConditionTrueFalse] xf86-input-wacom-1.2.3/src/wcmConfig.c:985:21: note: Calling function 'wcmMatchDevice' returns 0 xf86-input-wacom-1.2.3/src/wcmConfig.c:985:6: note: Condition '!wcmMatchDevice(priv,&common)' is always true 2.18.0 xf86-input-wacom-1.2.3/src/wcmFilter.c:145:34: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmFilter.c:58:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmTouchFilter.c:117:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XI_TouchEnd [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmTouchFilter.c:192:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROTATE_CW [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmTouchFilter.c:404:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmTouchFilter.c:615:20: style: Variable 'start' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmTouchFilter.c:616:19: style: Variable 'midPoint_new' is assigned a value that is never used. [unreadVariable] 2.18.0 xf86-input-wacom-1.2.3/src/wcmTouchFilter.c:617:19: style: Variable 'midPoint_old' is assigned a value that is never used. [unreadVariable] 2.18.0 xf86-input-wacom-1.2.3/src/wcmTouchFilter.c:618:11: style: Variable 'dist' is assigned a value that is never used. [unreadVariable] 2.18.0 xf86-input-wacom-1.2.3/src/wcmTouchFilter.c:660:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmTouchFilter.c:720:20: style: Variable 'start' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1013:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSC_SERIAL [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1050:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SYN [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1079:70: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1081:14: style: Variable 'private' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1088:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_KEY [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1237:28: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:124:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVIOCGVERSION [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1292:28: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1366:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1382:75: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1388:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable work [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1438:20: style: Variable 'dslast' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:143:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1583:14: style: Variable 'usbdata' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:160:14: style: Variable 'usbdata' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1653:14: style: Variable 'private' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1655:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_KEY [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:166:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVIOCGRAB [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1718:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_MAX [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1742:14: style: Variable 'usbdata' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1745:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_KEY [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1809:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:1850:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable state [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:2043:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BTN_TOUCH [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:2067:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ABS_MAX [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:406:26: style: Variable 'm' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:421:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVIOCGID [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:505:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_event [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:519:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_event [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:547:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable work [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:558:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_MAX [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:816:14: style: Variable 'usbdata' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:838:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_event [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:906:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device_type [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmUSB.c:984:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:151:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:259:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:279:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_INFO [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:292:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_INFO [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:348:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:36:20: style: Variable 'check' can be declared as pointer to const [constVariablePointer] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:379:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:390:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:394:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:399:15: style: Condition 'nmatch>=1' is always true [knownConditionTrueFalse] xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:392:15: note: Assuming that condition 'nmatch<1' is not redundant xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:399:15: note: Condition 'nmatch>=1' is always true 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:41:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:437:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:475:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:73:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 xf86-input-wacom-1.2.3/src/wcmValidateDevice.c:99:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_ERROR [valueFlowBailoutIncompleteVar] head xf86-input-wacom-1.2.3/src/x11/xf86Wacom.c:820:0: error: failed to evaluate #if condition, undefined function-like macro invocation: SET_ABI_VERSION( ... ) [syntaxError] 2.18.0 xf86-input-wacom-1.2.3/src/x11/xf86Wacom.c:968:36: error: There is an unknown macro here somewhere. Configuration is required. If BUILD_VERSION is a macro then please configure it. [unknownMacro] 2.18.0 xf86-input-wacom-1.2.3/src/xf86Wacom.h:163:66: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] head xf86-input-wacom-1.2.3/src/xf86Wacom.h:41:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [syntaxError] 2.18.0 xf86-input-wacom-1.2.3/test/wacom-test-suite.c:21:2: error: #error "Expected ENABLE_TESTS to be defined" [preprocessorErrorDirective] DONE