2025-08-29 17:04 ftp://ftp.de.debian.org/debian/pool/main/x/xserver-xorg-video-siliconmotion/xserver-xorg-video-siliconmotion_1.7.10.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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 478055e (2025-08-29 18:53:24 +0200) count: 67 108 elapsed-time: 0.4 1.0 head-timing-info: old-timing-info: head results: xf86-video-siliconmotion-1.7.10/src/smi501_output.c:51:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi501_output.c:147:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_accel.c:47:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_INFO [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_accel.c:156:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_accel.c:183:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:213:0: error: failed to evaluate #if condition, undefined function-like macro invocation: XORG_VERSION_NUMERIC( ... ) [preprocessorErrorDirective] xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:213:2: error: failed to evaluate #if condition, undefined function-like macro invocation: XORG_VERSION_NUMERIC( ... ) [preprocessorErrorDirective] xf86-video-siliconmotion-1.7.10/src/smi501_crtc.c:176:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_INFO [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi501_crtc.c:290:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_INFO [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi501_crtc.c:652:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_501.c:70:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_INFO [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_501.c:185:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_501.c:275:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_501.c:398:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_dac.c:43:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_driver.c:39:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [preprocessorErrorDirective] xf86-video-siliconmotion-1.7.10/src/smi_driver.c:39:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [preprocessorErrorDirective] xf86-video-siliconmotion-1.7.10/src/smi501_crtc.c:518:53: style: Parameter 'image' can be declared as pointer to const. However it seems that 'SMI501_CrtcLoadCursorImage' is a callback function, if 'image' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-video-siliconmotion-1.7.10/src/smi501_crtc.c:668:37: note: You might need to cast the function pointer here xf86-video-siliconmotion-1.7.10/src/smi501_crtc.c:518:53: note: Parameter 'image' can be declared as pointer to const xf86-video-siliconmotion-1.7.10/src/smi_i2c.c:45:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_i2c.c:57:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_i2c.c:72:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_video.c:523:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [preprocessorErrorDirective] xf86-video-siliconmotion-1.7.10/src/smi_video.c:523:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [preprocessorErrorDirective] xf86-video-siliconmotion-1.7.10/src/smi_output.c:64:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_PANEL [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_output.c:92:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_output.c:110:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DPMSModeOn [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_output.c:130:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF86OutputStatusUnknown [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_output.c:138:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF86OutputStatusConnected [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_output.c:167:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86OutputFuncsRec [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:94:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:190:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:225:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:292:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:370:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:440:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:505:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:512:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:606:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PictOpSrc [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:624:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:678:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_exa.c:718:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_output.c:144:17: style: Variable 'pSmi' is assigned a value that is never used. [unreadVariable] xf86-video-siliconmotion-1.7.10/src/smi_output.c:144:12: style: Variable 'pSmi' is assigned a value that is never used. [unreadVariable] xf86-video-siliconmotion-1.7.10/src/smi_501.c:470:25: warning: Comparison of a boolean expression with an integer. [compareBoolExpressionWithInt] xf86-video-siliconmotion-1.7.10/src/smi_501.c:441:16: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] xf86-video-siliconmotion-1.7.10/src/smi_501.c:440:19: note: Assuming that condition 'i<32' is not redundant xf86-video-siliconmotion-1.7.10/src/smi_501.c:441:16: note: Shift xf86-video-siliconmotion-1.7.10/src/smi_501.c:524:8: warning: Uninitialized variable: *x1_select [uninitvar] xf86-video-siliconmotion-1.7.10/src/smi_501.c:206:40: note: Calling function 'SMI501_FindMemClock', 2nd argument '&x_select' value is xf86-video-siliconmotion-1.7.10/src/smi_501.c:505:8: note: Assuming condition is false xf86-video-siliconmotion-1.7.10/src/smi_501.c:524:8: note: Uninitialized variable: *x1_select xf86-video-siliconmotion-1.7.10/src/smi_xaa.c:195:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smi_xaa.c:69:23: style:inconclusive: Function 'SMI_XAAInit' argument 1 names different: declaration 'pScrn' definition 'pScreen'. [funcArgNamesDifferent] xf86-video-siliconmotion-1.7.10/src/smi.h:383:28: note: Function 'SMI_XAAInit' argument 1 names different: declaration 'pScrn' definition 'pScreen'. xf86-video-siliconmotion-1.7.10/src/smi_xaa.c:69:23: note: Function 'SMI_XAAInit' argument 1 names different: declaration 'pScrn' definition 'pScreen'. xf86-video-siliconmotion-1.7.10/src/smi_exa.c:92:23: style:inconclusive: Function 'SMI_EXAInit' argument 1 names different: declaration 'pScrn' definition 'pScreen'. [funcArgNamesDifferent] xf86-video-siliconmotion-1.7.10/src/smi.h:386:28: note: Function 'SMI_EXAInit' argument 1 names different: declaration 'pScrn' definition 'pScreen'. xf86-video-siliconmotion-1.7.10/src/smi_exa.c:92:23: note: Function 'SMI_EXAInit' argument 1 names different: declaration 'pScrn' definition 'pScreen'. xf86-video-siliconmotion-1.7.10/src/smilynx_output.c:230:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF86OutputStatusConnected [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_output.c:257:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_output.c:50:34: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] xf86-video-siliconmotion-1.7.10/src/smilynx_output.c:160:21: style: Variable 'pMon' is assigned a value that is never used. [unreadVariable] xf86-video-siliconmotion-1.7.10/src/smilynx_hw.c:46:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VGA_CRTC_INDEX_OFFSET [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_hw.c:160:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VGA_CRTC_INDEX_OFFSET [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_hw.c:332:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VGA_CRTC_INDEX_OFFSET [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_hw.c:609:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VGA_CRTC_INDEX_OFFSET [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:255:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:269:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VGA_CRTC_INDEX_OFFSET [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:363:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VGA_CRTC_INDEX_OFFSET [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:609:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_INFO [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:654:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VGA_DAC_WRITE_ADDR [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:864:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DPMSModeOff [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:893:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DPMSModeOff [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:946:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:817:59: style: Parameter 'image' can be declared as pointer to const. However it seems that 'SMILynx_CrtcLoadCursorImage_crt' is a callback function, if 'image' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:979:37: note: You might need to cast the function pointer here xf86-video-siliconmotion-1.7.10/src/smilynx_crtc.c:817:59: note: Parameter 'image' can be declared as pointer to const xf86-video-siliconmotion-1.7.10/src/smilynx_hw.c:60:39: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] diff: 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:198:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_ERROR [valueFlowBailoutIncompleteVar] head xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:213:0: error: failed to evaluate #if condition, undefined function-like macro invocation: XORG_VERSION_NUMERIC( ... ) [preprocessorErrorDirective] head xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:213:2: error: failed to evaluate #if condition, undefined function-like macro invocation: XORG_VERSION_NUMERIC( ... ) [preprocessorErrorDirective] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:244:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86CrtcFuncsRec [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:52:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:74:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:89:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DPMSModeOn [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:95:44: style: Parameter 'red' can be declared as pointer to const. However it seems that 'SMI_CrtcGammaSet' is a callback function, if 'red' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:253:31: note: You might need to cast the function pointer here xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:95:44: note: Parameter 'red' can be declared as pointer to const 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:95:57: style: Parameter 'green' can be declared as pointer to const. However it seems that 'SMI_CrtcGammaSet' is a callback function, if 'green' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:253:31: note: You might need to cast the function pointer here xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:95:57: note: Parameter 'green' can be declared as pointer to const 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:95:72: style: Parameter 'blue' can be declared as pointer to const. However it seems that 'SMI_CrtcGammaSet' is a callback function, if 'blue' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:253:31: note: You might need to cast the function pointer here xf86-video-siliconmotion-1.7.10/src/smi_crtc.c:95:72: note: Parameter 'blue' can be declared as pointer to const 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_driver.c:306:3: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] head xf86-video-siliconmotion-1.7.10/src/smi_driver.c:39:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [preprocessorErrorDirective] head xf86-video-siliconmotion-1.7.10/src/smi_driver.c:39:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [preprocessorErrorDirective] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1065:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1150:13: style: Variable 'fbPitch' is assigned a value that is never used. [unreadVariable] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: style: Variable 'width' is reassigned a value before the old one has been used. [redundantAssignment] xf86-video-siliconmotion-1.7.10/src/smi_video.c:1156:8: note: width is assigned xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: note: width is overwritten 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: style: Variable 'width' is reassigned a value before the old one has been used. [redundantAssignment] xf86-video-siliconmotion-1.7.10/src/smi_video.c:1161:8: note: width is assigned xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: note: width is overwritten 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: style: Variable 'width' is reassigned a value before the old one has been used. [redundantAssignment] xf86-video-siliconmotion-1.7.10/src/smi_video.c:1166:8: note: width is assigned xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: note: width is overwritten 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: style: Variable 'width' is reassigned a value before the old one has been used. [redundantAssignment] xf86-video-siliconmotion-1.7.10/src/smi_video.c:1208:13: note: width is assigned xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: note: width is overwritten 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: style: Variable 'width' is reassigned a value before the old one has been used. [redundantAssignment] xf86-video-siliconmotion-1.7.10/src/smi_video.c:1213:13: note: width is assigned xf86-video-siliconmotion-1.7.10/src/smi_video.c:1242:11: note: width is overwritten 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1352:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable milliseconds [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1392:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1442:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadMatch [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1494:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1656:8: style:inconclusive: Function 'SMI_QueryImageAttributes' argument 5 names different: declaration 'picthes' definition 'pitches'. [funcArgNamesDifferent] xf86-video-siliconmotion-1.7.10/src/smi_video.c:107:8: note: Function 'SMI_QueryImageAttributes' argument 5 names different: declaration 'picthes' definition 'pitches'. xf86-video-siliconmotion-1.7.10/src/smi_video.c:1656:8: note: Function 'SMI_QueryImageAttributes' argument 5 names different: declaration 'picthes' definition 'pitches'. 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1848:14: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1909:35: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:1913:35: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:202:19: style: struct member '_VideoNormDataRec::Wt' is never used. [unusedStructMember] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:204:19: style: struct member '_VideoNormDataRec::Ht' is never used. [unusedStructMember] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2071:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable screens [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2160:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2196:52: style: Parameter 'area' can be declared as pointer to const. However it seems that 'SMI_VideoSave' is a callback function, if 'area' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xf86-video-siliconmotion-1.7.10/src/smi_video.c:2230:6: note: You might need to cast the function pointer here xf86-video-siliconmotion-1.7.10/src/smi_video.c:2196:52: note: Parameter 'area' can be declared as pointer to const 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2198:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2213:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable screens [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2351:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadAlloc [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2432:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2451:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2530:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2546:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:2559:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:522:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] head xf86-video-siliconmotion-1.7.10/src/smi_video.c:523:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [preprocessorErrorDirective] head xf86-video-siliconmotion-1.7.10/src/smi_video.c:523:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GET_ABI_MAJOR( ... ) [preprocessorErrorDirective] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:555:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF86VideoEncodingRec [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:619:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:685:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:691:13: error: Array 'SMI_VideoAttributes[2]' accessed at index 4, which is out of bounds. [arrayIndexOutOfBounds] xf86-video-siliconmotion-1.7.10/src/smi_video.c:1405:30: note: Calling function 'SetAttr', 2nd argument '4' value is 4 xf86-video-siliconmotion-1.7.10/src/smi_video.c:691:13: note: Array index out of bounds 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:691:13: error: Array 'SMI_VideoAttributes[2]' accessed at index 5, which is out of bounds. [arrayIndexOutOfBounds] xf86-video-siliconmotion-1.7.10/src/smi_video.c:1407:30: note: Calling function 'SetAttr', 2nd argument '5' value is 5 xf86-video-siliconmotion-1.7.10/src/smi_video.c:691:13: note: Array index out of bounds 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:719:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XvBadAlloc [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:731:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:824:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xf86Screens [valueFlowBailoutIncompleteVar] 2.18.0 xf86-video-siliconmotion-1.7.10/src/smi_video.c:964:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] DONE