2025-11-06 16:10 ftp://ftp.de.debian.org/debian/pool/main/libw/libwnck/libwnck_2.30.7.orig.tar.xz 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 -j1 platform: Linux-6.8.0-87-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 2c5b872 (2025-11-06 13:42:16 +0200) count: 51 51 elapsed-time: 1.1 1.1 head-timing-info: old-timing-info: head results: libwnck-2.30.7/libwnck/window.h:28:0: error: #error "libwnck should only be used if you understand that it's subject to frequent change, and is not supported as a fixed API/ABI or as part of the platform" [preprocessorErrorDirective] libwnck-2.30.7/libwnck/window.h:28:2: error: #error "libwnck should only be used if you understand that it's subject to frequent change, and is not supported as a fixed API/ABI or as part of the platform" [preprocessorErrorDirective] libwnck-2.30.7/libwnck/pager-accessible-factory.c:42:65: style: Parameter 'factory' can be declared as pointer to const [constParameterPointer] libwnck-2.30.7/libwnck/test-pager.c:31:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/test-pager.c:92:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNCK_PAGER_DISPLAY_NAME [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/test-selector.c:38:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/test-tasklist.c:31:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_OPERATOR_SOURCE [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/test-tasklist.c:77:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/test-urgent.c:75:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/test-wnck.c:105:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/test-wnck.c:261:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNCK_WINDOW_STATE_MINIMIZED [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/test-wnck.c:349:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNCK_TYPE_WINDOW [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/test-wnck.c:451:3: error: Returning/dereferencing 'window' after it is deallocated / released [deallocret] libwnck-2.30.7/libwnck/test-wnck.c:448:7: note: Returning/dereferencing 'window' after it is deallocated / released libwnck-2.30.7/libwnck/test-wnck.c:451:3: note: Returning/dereferencing 'window' after it is deallocated / released libwnck-2.30.7/libwnck/test-wnck.c:147:51: style: Parameter 'screen' can be declared as pointer to const. However it seems that 'active_workspace_changed_callback' is a callback function, if 'screen' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:71:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:147:51: note: Parameter 'screen' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:148:51: style: Parameter 'previous_workspace' can be declared as pointer to const. However it seems that 'active_workspace_changed_callback' is a callback function, if 'previous_workspace' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:71:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:148:51: note: Parameter 'previous_workspace' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:149:51: style: Parameter 'data' can be declared as pointer to const. However it seems that 'active_workspace_changed_callback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:71:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:149:51: note: Parameter 'data' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:155:51: style: Parameter 'screen' can be declared as pointer to const. However it seems that 'window_stacking_changed_callback' is a callback function, if 'screen' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:74:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:155:51: note: Parameter 'screen' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:156:51: style: Parameter 'data' can be declared as pointer to const. However it seems that 'window_stacking_changed_callback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:74:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:156:51: note: Parameter 'data' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:203:51: style: Parameter 'screen' can be declared as pointer to const. However it seems that 'workspace_created_callback' is a callback function, if 'screen' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:83:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:203:51: note: Parameter 'screen' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:204:51: style: Parameter 'space' can be declared as pointer to const. However it seems that 'workspace_created_callback' is a callback function, if 'space' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:83:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:204:51: note: Parameter 'space' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:205:51: style: Parameter 'data' can be declared as pointer to const. However it seems that 'workspace_created_callback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:83:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:205:51: note: Parameter 'data' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:211:51: style: Parameter 'screen' can be declared as pointer to const. However it seems that 'workspace_destroyed_callback' is a callback function, if 'screen' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:86:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:211:51: note: Parameter 'screen' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:212:51: style: Parameter 'space' can be declared as pointer to const. However it seems that 'workspace_destroyed_callback' is a callback function, if 'space' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:86:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:212:51: note: Parameter 'space' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:213:51: style: Parameter 'data' can be declared as pointer to const. However it seems that 'workspace_destroyed_callback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:86:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:213:51: note: Parameter 'data' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:219:47: style: Parameter 'screen' can be declared as pointer to const. However it seems that 'application_opened_callback' is a callback function, if 'screen' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:89:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:219:47: note: Parameter 'screen' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:220:47: style: Parameter 'app' can be declared as pointer to const. However it seems that 'application_opened_callback' is a callback function, if 'app' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:89:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:220:47: note: Parameter 'app' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:227:47: style: Parameter 'screen' can be declared as pointer to const. However it seems that 'application_closed_callback' is a callback function, if 'screen' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:92:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:227:47: note: Parameter 'screen' can be declared as pointer to const libwnck-2.30.7/libwnck/test-wnck.c:228:47: style: Parameter 'app' can be declared as pointer to const. However it seems that 'application_closed_callback' is a callback function, if 'app' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/test-wnck.c:92:3: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/test-wnck.c:228:47: note: Parameter 'app' can be declared as pointer to const libwnck-2.30.7/libwnck/wnck-marshal.c:69:28: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] libwnck-2.30.7/libwnck/wnck-marshal.c:69:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnck-urgency-monitor.c:123:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNCK_WINDOW_STATE_DEMANDS_ATTENTION [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnck-urgency-monitor.c:207:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNCK_CLIENT_TYPE_PAGER [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnck-urgency-monitor.c:119:18: style: Variable 'icon' can be declared as pointer to const [constVariablePointer] libwnck-2.30.7/libwnck/wnckprop.c:342:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropertyChangeMask [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:797:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:997:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNCK_WINDOW_ACTION_MINIMIZE [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:1295:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNCK_MOTION_LEFT [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:1611:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNCK_WINDOW_ACTION_MOVE [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:1662:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:1731:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:1749:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_FILTER_REMOVE [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:1775:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CROSS [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:1808:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CURRENT_TIME [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:1823:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] libwnck-2.30.7/libwnck/wnckprop.c:306:31: style: Parameter 'display' can be declared as pointer to const. However it seems that 'timestamp_predicate' is a callback function, if 'display' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/wnckprop.c:349:6: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/wnckprop.c:306:31: note: Parameter 'display' can be declared as pointer to const libwnck-2.30.7/libwnck/wnckprop.c:307:17: style: Parameter 'xevent' can be declared as pointer to const. However it seems that 'timestamp_predicate' is a callback function, if 'xevent' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libwnck-2.30.7/libwnck/wnckprop.c:349:6: note: You might need to cast the function pointer here libwnck-2.30.7/libwnck/wnckprop.c:307:17: note: Parameter 'xevent' can be declared as pointer to const libwnck-2.30.7/libwnck/wnckprop.c:310:18: style: Variable 'info' can be declared as pointer to const [constVariablePointer] libwnck-2.30.7/libwnck/wnckprop.c:1056:27: style: Variable 'active_space' can be declared as pointer to const [constVariablePointer] libwnck-2.30.7/libwnck/wnckprop.c:1347:10: style: Variable 'windows' can be declared as pointer to const [constVariablePointer] libwnck-2.30.7/libwnck/wnckprop.c:1375:15: style: Variable 'windows' can be declared as pointer to const [constVariablePointer] libwnck-2.30.7/libwnck/workspace-accessible-factory.c:42:73: style: Parameter 'factory' can be declared as pointer to const [constParameterPointer] diff: DONE