2026-05-03 09:40 ftp://ftp.de.debian.org/debian/pool/main/libx/libx11-protocol-other-perl/libx11-protocol-other-perl_31.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 57 57 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: X11-Protocol-Other-31/devel/Encode-X11-xlib.c:70:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/Encode-X11-xlib.c:56:3: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] X11-Protocol-Other-31/devel/Encode-X11-xlib.c:57:3: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:83:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:80:41: error: Static variable 'text_prop' will use object that points to local variable 'bytes'. [danglingLifetime] X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:77:41: note: Array decayed to pointer here. X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:45:10: note: Variable created here. X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:80:41: note: Static variable 'text_prop' will use object that points to local variable 'bytes'. X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:53:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:57:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:65:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:67:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] X11-Protocol-Other-31/devel/Encode-X11-xlib2.c:42:11: style: Variable 'part' can be declared as pointer to const [constVariablePointer] X11-Protocol-Other-31/devel/encode-dump.c:34:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/encode-dump.c:65:16: style: Condition 'iret==-1' is always false [knownConditionTrueFalse] X11-Protocol-Other-31/devel/encode-dump.c:69:24: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/encode-dump.c:91:9: portability: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/encode-dump.c:144:5: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] X11-Protocol-Other-31/devel/encode-dump.c:207:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed wchar_t'. [invalidPrintfArgType_sint] X11-Protocol-Other-31/devel/encode-dump.c:67:9: style: Statements following 'continue' will never be executed. [unreachableCode] X11-Protocol-Other-31/devel/encode-dump.c:112:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] X11-Protocol-Other-31/devel/encode-dump.c:141:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] X11-Protocol-Other-31/devel/encode-dump.c:191:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] X11-Protocol-Other-31/devel/encode-dump.c:225:3: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] X11-Protocol-Other-31/devel/encode-dump.c:183:13: style: Local variable 'fp' shadows outer variable [shadowVariable] X11-Protocol-Other-31/devel/encode-dump.c:154:11: note: Shadowed declaration X11-Protocol-Other-31/devel/encode-dump.c:183:13: note: Shadow variable X11-Protocol-Other-31/devel/encode-xlib.c:50:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCompoundTextStyle [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/encode-xlib.c:38:25: error: Buffer is accessed out of bounds: buf [bufferAccessOutOfBounds] X11-Protocol-Other-31/devel/encode-xlib.c:72:3: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] X11-Protocol-Other-31/devel/encode-xlib.c:64:13: style: Local variable 'fp' shadows outer variable [shadowVariable] X11-Protocol-Other-31/devel/encode-xlib.c:35:11: note: Shadowed declaration X11-Protocol-Other-31/devel/encode-xlib.c:64:13: note: Shadow variable X11-Protocol-Other-31/devel/exe-screensaver-info.c:69:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ScreenSaverReset [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/exe-sync.c:41:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable counter [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/exe-sync.c:56:3: style: Statements following 'return' will never be executed. [unreachableCode] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:49:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xXF86VidModeGetAllModeLinesReply [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:48:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:59:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:62:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:64:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:67:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:69:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:74:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:55:20: style: struct member 'Anonymous0::x' is never used. [unusedStructMember] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:56:19: style: struct member 'Anonymous0::y' is never used. [unusedStructMember] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:46:12: style: Unused variable: display [unusedVariable] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:53:31: style: Unused variable: foo [unusedVariable] X11-Protocol-Other-31/devel/exe-xf86vidmode.c:57:5: style: Unused variable: bar [unusedVariable] X11-Protocol-Other-31/devel/exe-xi-info.c:60:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyClass [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/exe-xi-info.c:50:18: style: Variable 'info' can be declared as pointer to const [constVariablePointer] X11-Protocol-Other-31/devel/exe-xi-info.c:61:19: style: Variable 'keyinfo' can be declared as pointer to const [constVariablePointer] X11-Protocol-Other-31/devel/exe-xi-info.c:63:22: style: Variable 'ptrinfo' can be declared as pointer to const [constVariablePointer] X11-Protocol-Other-31/devel/exe-xi-info.c:65:24: style: Variable 'valinfo' can be declared as pointer to const [constVariablePointer] X11-Protocol-Other-31/devel/exe-xi-info.c:61:27: style: Variable 'keyinfo' is assigned a value that is never used. [unreadVariable] X11-Protocol-Other-31/devel/exe-xi-info.c:63:30: style: Variable 'ptrinfo' is assigned a value that is never used. [unreadVariable] X11-Protocol-Other-31/devel/exe-xv-info.c:56:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_ports [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/exe-xv.c:27:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xvEncodingInfo [valueFlowBailoutIncompleteVar] X11-Protocol-Other-31/devel/exe-xv.c:26:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] X11-Protocol-Other-31/devel/xdga-setmode.c:9:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] X11-Protocol-Other-31/devel/xdga-setmode.c:7:25: style: Parameter 'display' can be declared as pointer to const. However it seems that 'error_handler' is a callback function, if 'display' is declared with const you might also need to cast function pointer(s). [constParameterCallback] X11-Protocol-Other-31/devel/xdga-setmode.c:22:21: note: You might need to cast the function pointer here X11-Protocol-Other-31/devel/xdga-setmode.c:7:25: note: Parameter 'display' can be declared as pointer to const X11-Protocol-Other-31/devel/xdga-setmode.c:7:47: style: Parameter 'error' can be declared as pointer to const. However it seems that 'error_handler' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] X11-Protocol-Other-31/devel/xdga-setmode.c:22:21: note: You might need to cast the function pointer here X11-Protocol-Other-31/devel/xdga-setmode.c:7:47: note: Parameter 'error' can be declared as pointer to const X11-Protocol-Other-31/devel/xdga-setmode.c:19:14: style: Variable 'screen' is assigned a value that is never used. [unreadVariable] X11-Protocol-Other-31/devel/xdga-setmode.c:20:12: style: Variable 'mode' is assigned a value that is never used. [unreadVariable] diff: DONE