2026-01-15 15:12 ftp://ftp.de.debian.org/debian/pool/main/x/xcb/xcb_2.4.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 -j90 platform: Linux-6.8.0-90-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.19.0 head-info: a8f83c1 (2026-01-15 10:50:53 +0100) count: 1 52 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: xcb-2.4/xcb.c:32:14: error: syntax error [syntaxError] diff: 2.19.0 xcb-2.4/xcb.c:1072:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:1088:9: style: struct member 'ares_t::layout' is never used. [unusedStructMember] 2.19.0 xcb-2.4/xcb.c:1129:10: style: Unused variable: n [unusedVariable] 2.19.0 xcb-2.4/xcb.c:1129:7: style: Unused variable: i [unusedVariable] 2.19.0 xcb-2.4/xcb.c:1131:8: style: Unused variable: name [unusedVariable] 2.19.0 xcb-2.4/xcb.c:1138:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Atom [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:1316:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropertyNotify [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:1353:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] 2.19.0 xcb-2.4/xcb.c:206:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:222:67: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.19.0 xcb-2.4/xcb.c:224:55: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.19.0 xcb-2.4/xcb.c:283:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:309:9: style: Local variable 'data' shadows outer variable [shadowVariable] xcb-2.4/xcb.c:987:12: note: Shadowed declaration xcb-2.4/xcb.c:309:9: note: Shadow variable 2.19.0 xcb-2.4/xcb.c:315:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:320:9: style: Condition 'pt.nitems' is always true [knownConditionTrueFalse] 2.19.0 xcb-2.4/xcb.c:323:20: error: Uninitialized variable: &list [uninitvar] 2.19.0 xcb-2.4/xcb.c:323:27: error: Uninitialized variable: &count [uninitvar] 2.19.0 xcb-2.4/xcb.c:326:21: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] xcb-2.4/xcb.c:325:21: note: Assuming allocation function fails xcb-2.4/xcb.c:325:21: note: Assignment 'data=strdup(list[0])', assigned value is 0 xcb-2.4/xcb.c:326:21: note: Null pointer dereference 2.19.0 xcb-2.4/xcb.c:32:0: debug: Failed to parse 'typedef Bong ! Start again . You must define either the 'ATHENA' || 'MOTIF' symbol when compiling . struct _CbClassRec { CoreClassPart core_class ; } CbClassRec , * CbWidgetClass ;'. The checking continues anyway. [simplifyTypedef] head xcb-2.4/xcb.c:32:14: error: syntax error [syntaxError] 2.19.0 xcb-2.4/xcb.c:349:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmbTextListToTextProperty [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:350:36: error: Uninitialized variable: &pt [uninitvar] 2.19.0 xcb-2.4/xcb.c:369:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Atom [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:391:11: style: Local variable 'nbytes' shadows outer variable [shadowVariable] xcb-2.4/xcb.c:988:10: note: Shadowed declaration xcb-2.4/xcb.c:391:11: note: Shadow variable 2.19.0 xcb-2.4/xcb.c:392:13: style: Local variable 'data' shadows outer variable [shadowVariable] xcb-2.4/xcb.c:987:12: note: Shadowed declaration xcb-2.4/xcb.c:392:13: note: Shadow variable 2.19.0 xcb-2.4/xcb.c:411:7: style: Unused variable: cols [unusedVariable] 2.19.0 xcb-2.4/xcb.c:472:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AllPlanes [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:497:10: style: Local variable 'nbytes' shadows outer variable [shadowVariable] xcb-2.4/xcb.c:988:10: note: Shadowed declaration xcb-2.4/xcb.c:497:10: note: Shadow variable 2.19.0 xcb-2.4/xcb.c:556:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_PRIMARY [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:586:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_PRIMARY [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:620:14: style: Parameter 'parms' can be declared as pointer to const. However it seems that 'cb_rotate' is a callback function, if 'parms' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:776:14: note: You might need to cast the function pointer here xcb-2.4/xcb.c:620:14: note: Parameter 'parms' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:621:16: style: Parameter 'nparms' can be declared as pointer to const. However it seems that 'cb_rotate' is a callback function, if 'nparms' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:776:14: note: You might need to cast the function pointer here xcb-2.4/xcb.c:621:16: note: Parameter 'nparms' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:635:14: style: Parameter 'event' can be declared as pointer to const. However it seems that 'cb_quit' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:777:12: note: You might need to cast the function pointer here xcb-2.4/xcb.c:635:14: note: Parameter 'event' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:636:14: style: Parameter 'parms' can be declared as pointer to const. However it seems that 'cb_quit' is a callback function, if 'parms' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:777:12: note: You might need to cast the function pointer here xcb-2.4/xcb.c:636:14: note: Parameter 'parms' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:637:16: style: Parameter 'nparms' can be declared as pointer to const. However it seems that 'cb_quit' is a callback function, if 'nparms' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:777:12: note: You might need to cast the function pointer here xcb-2.4/xcb.c:637:16: note: Parameter 'nparms' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:670:7: style: Local variable 'nbytes' shadows outer variable [shadowVariable] xcb-2.4/xcb.c:988:10: note: Shadowed declaration xcb-2.4/xcb.c:670:7: note: Shadow variable 2.19.0 xcb-2.4/xcb.c:671:9: style: Unused variable: ptr [unusedVariable] 2.19.0 xcb-2.4/xcb.c:679:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SelectionNotify [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:744:14: style: Parameter 'event' can be declared as pointer to const. However it seems that 'cb_selclear' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:780:16: note: You might need to cast the function pointer here xcb-2.4/xcb.c:744:14: note: Parameter 'event' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:750:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_PRIMARY [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:848:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:862:15: style: Parameter 'd' can be declared as pointer to const. However it seems that 'xioerror' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:1279:23: note: You might need to cast the function pointer here xcb-2.4/xcb.c:862:15: note: Parameter 'd' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:871:14: style: Parameter 'ep' can be declared as pointer to const. However it seems that 'wmdel' is a callback function, if 'ep' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:1285:36: note: You might need to cast the function pointer here xcb-2.4/xcb.c:871:14: note: Parameter 'ep' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:872:15: style: Parameter 'cont' can be declared as pointer to const. However it seems that 'wmdel' is a callback function, if 'cont' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:1285:36: note: You might need to cast the function pointer here xcb-2.4/xcb.c:872:15: note: Parameter 'cont' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:896:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.19.0 xcb-2.4/xcb.c:910:12: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'doset' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:1076:20: note: You might need to cast the function pointer here xcb-2.4/xcb.c:910:12: note: Parameter 'ptr' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:915:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] xcb-2.4/xcb.c:913:22: note: Assuming allocation function fails xcb-2.4/xcb.c:913:22: note: Assignment 'str=malloc(nb+1)', assigned value is 0 xcb-2.4/xcb.c:915:11: note: Null pointer dereference 2.19.0 xcb-2.4/xcb.c:916:3: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] xcb-2.4/xcb.c:913:22: note: Assuming allocation function fails xcb-2.4/xcb.c:913:22: note: Assignment 'str=malloc(nb+1)', assigned value is 0 xcb-2.4/xcb.c:916:3: note: Null pointer dereference 2.19.0 xcb-2.4/xcb.c:924:12: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'timeout' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:958:31: note: You might need to cast the function pointer here xcb-2.4/xcb.c:924:12: note: Parameter 'arg' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:925:20: style: Parameter 'id' can be declared as pointer to const. However it seems that 'timeout' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcb-2.4/xcb.c:958:31: note: You might need to cast the function pointer here xcb-2.4/xcb.c:925:20: note: Parameter 'id' can be declared as pointer to const 2.19.0 xcb-2.4/xcb.c:939:9: style: Local variable 'data' shadows outer variable [shadowVariable] xcb-2.4/xcb.c:987:12: note: Shadowed declaration xcb-2.4/xcb.c:939:9: note: Shadow variable 2.19.0 xcb-2.4/xcb.c:940:7: style: Local variable 'nbytes' shadows outer variable [shadowVariable] xcb-2.4/xcb.c:988:10: note: Shadowed declaration xcb-2.4/xcb.c:940:7: note: Shadow variable 2.19.0 xcb-2.4/xcb.c:945:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_PRIMARY [valueFlowBailoutIncompleteVar] DONE