2025-11-04 05:35 ftp://ftp.de.debian.org/debian/pool/main/c/compiz-boxmenu/compiz-boxmenu_1.1.12.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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.48+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: 1f35303 (2025-11-01 19:39:44 +0100) count: 30 71 elapsed-time: 0.2 0.3 head-timing-info: old-timing-info: head results: compiz-boxmenu-1.1.12/deskmenu-documentlist-client.c:35:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-documentlist-client.c:35:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-dplist-client.c:34:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-dplist-client.c:34:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-utils.c:20:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_MULTILINE [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-utils.c:35:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_MULTILINE [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-utils.c:50:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_MULTILINE [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-utils.c:63:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_MULTILINE [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-utils.c:77:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_MULTILINE [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-utils.c:98:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_CLOSE [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-menu.c:1468:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-menu.c:1468:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-vplist-client.c:35:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-vplist-client.c:35:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-windowlist-client.c:33:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-windowlist-client.c:33:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu.c:32:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu.c:32:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] compiz-boxmenu-1.1.12/deskmenu-wnck.c:249:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_ELLIPSIZE_END [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-wnck.c:472:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-wnck.c:543:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-wnck.c:571:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-wnck.c:601:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBUS_BUS_SESSION [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-wnck.c:710:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNCK_MOTION_LEFT [valueFlowBailoutIncompleteVar] compiz-boxmenu-1.1.12/deskmenu-wnck.c:653:11: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] compiz-boxmenu-1.1.12/deskmenu-wnck.c:812:35: style:inconclusive: Function 'deskmenu_dplist_initialize' argument 3 names different: declaration 'desktop_icon' definition 'viewport_icon'. [funcArgNamesDifferent] compiz-boxmenu-1.1.12/deskmenu-wnck.h:56:98: note: Function 'deskmenu_dplist_initialize' argument 3 names different: declaration 'desktop_icon' definition 'viewport_icon'. compiz-boxmenu-1.1.12/deskmenu-wnck.c:812:35: note: Function 'deskmenu_dplist_initialize' argument 3 names different: declaration 'desktop_icon' definition 'viewport_icon'. compiz-boxmenu-1.1.12/deskmenu-wnck.c:123:43: style: Parameter 'ante' can be declared as pointer to const [constParameterPointer] compiz-boxmenu-1.1.12/deskmenu-wnck.c:124:43: style: Parameter 'post' can be declared as pointer to const [constParameterPointer] compiz-boxmenu-1.1.12/deskmenu-wnck.c:127:19: style: Variable 'mnemonic' can be declared as pointer to const [constVariablePointer] compiz-boxmenu-1.1.12/deskmenu-wnck.c:483:43: style: Parameter 'vplist' can be declared as pointer to const [constParameterPointer] diff: 2.18.0 compiz-boxmenu-1.1.12/deskmenu-documentlist-client.c:105:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-documentlist-client.c:33:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] head compiz-boxmenu-1.1.12/deskmenu-documentlist-client.c:35:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head compiz-boxmenu-1.1.12/deskmenu-documentlist-client.c:35:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-documentlist-client.c:42:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-documentlist-client.c:67:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-documentlist-client.c:81:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-dplist-client.c:32:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] head compiz-boxmenu-1.1.12/deskmenu-dplist-client.c:34:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head compiz-boxmenu-1.1.12/deskmenu-dplist-client.c:34:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-dplist-client.c:41:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-dplist-client.c:60:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-dplist-client.c:75:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-dplist-client.c:98:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:102:32: style: Parameter 'command' can be declared as pointer to const. However it seems that 'launcher_activated' is a callback function, if 'command' is declared with const you might also need to cast function pointer(s). [constParameterCallback] compiz-boxmenu-1.1.12/deskmenu-menu.c:322:6: note: You might need to cast the function pointer here compiz-boxmenu-1.1.12/deskmenu-menu.c:102:32: note: Parameter 'command' can be declared as pointer to const 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1072:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_type [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1151:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GHookList [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1159:30: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:115:30: style: Parameter 'command' can be declared as pointer to const. However it seems that 'recent_activated' is a callback function, if 'command' is declared with const you might also need to cast function pointer(s). [constParameterCallback] compiz-boxmenu-1.1.12/deskmenu-menu.c:214:2: note: You might need to cast the function pointer here compiz-boxmenu-1.1.12/deskmenu-menu.c:115:30: note: Parameter 'command' can be declared as pointer to const 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1166:9: style: Local variable 'text' shadows outer function [shadowFunction] compiz-boxmenu-1.1.12/deskmenu-menu.c:57:1: note: Shadowed declaration compiz-boxmenu-1.1.12/deskmenu-menu.c:1166:9: note: Shadow variable 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1169:2: warning: Return value of function g_file_get_contents() is not used. [ignoredReturnValue] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:118:24: style: Variable 'file' can be declared as pointer to const [constVariablePointer] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:118:9: style: Variable 'full_command' can be declared as pointer to const [constVariablePointer] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1209:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:131:45: style: Parameter 'command' can be declared as pointer to const. However it seems that 'pipe_menu_recreate' is a callback function, if 'command' is declared with const you might also need to cast function pointer(s). [constParameterCallback] compiz-boxmenu-1.1.12/deskmenu-menu.c:312:5: note: You might need to cast the function pointer here compiz-boxmenu-1.1.12/deskmenu-menu.c:131:45: note: Parameter 'command' can be declared as pointer to const 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:134:9: style: Variable 'cache_entries' can be declared as pointer to const [constVariablePointer] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1360:17: style: Parameter 'deskmenu' can be declared as pointer to const [constParameterPointer] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1396:28: style: Parameter 'deskmenu' can be declared as pointer to const [constParameterPointer] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1405:63: style: Parameter 'workingd' can be declared as pointer to const [constParameterPointer] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1422:10: style: Variable 'i' is assigned a value that is never used. [unreadVariable] head compiz-boxmenu-1.1.12/deskmenu-menu.c:1468:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head compiz-boxmenu-1.1.12/deskmenu-menu.c:1468:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1472:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBUS_BUS_SESSION [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:1499:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:201:100: style: Parameter 'sort_type' can be declared as pointer to const [constParameterPointer] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:228:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RECENT_SORT_MRU [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:286:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:704:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:760:10: style: Local variable 'w' shadows outer variable [shadowVariable] compiz-boxmenu-1.1.12/deskmenu-menu.c:607:7: note: Shadowed declaration compiz-boxmenu-1.1.12/deskmenu-menu.c:760:10: note: Shadow variable 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:760:13: style: Local variable 'h' shadows outer variable [shadowVariable] compiz-boxmenu-1.1.12/deskmenu-menu.c:607:10: note: Shadowed declaration compiz-boxmenu-1.1.12/deskmenu-menu.c:760:13: note: Shadow variable 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:795:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:93:18: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'quit' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] compiz-boxmenu-1.1.12/deskmenu-menu.c:493:4: note: You might need to cast the function pointer here compiz-boxmenu-1.1.12/deskmenu-menu.c:93:18: note: Parameter 'widget' can be declared as pointer to const 2.18.0 compiz-boxmenu-1.1.12/deskmenu-menu.c:94:18: style: Parameter 'data' can be declared as pointer to const. However it seems that 'quit' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] compiz-boxmenu-1.1.12/deskmenu-menu.c:493:4: note: You might need to cast the function pointer here compiz-boxmenu-1.1.12/deskmenu-menu.c:94:18: note: Parameter 'data' can be declared as pointer to const 2.18.0 compiz-boxmenu-1.1.12/deskmenu-vplist-client.c:102:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-vplist-client.c:33:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] head compiz-boxmenu-1.1.12/deskmenu-vplist-client.c:35:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head compiz-boxmenu-1.1.12/deskmenu-vplist-client.c:35:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-vplist-client.c:42:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-vplist-client.c:63:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-vplist-client.c:78:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-windowlist-client.c:31:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] head compiz-boxmenu-1.1.12/deskmenu-windowlist-client.c:33:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head compiz-boxmenu-1.1.12/deskmenu-windowlist-client.c:33:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-windowlist-client.c:40:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-windowlist-client.c:61:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-windowlist-client.c:76:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu-windowlist-client.c:86:3: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu.c:30:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] head compiz-boxmenu-1.1.12/deskmenu.c:32:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head compiz-boxmenu-1.1.12/deskmenu.c:32:3: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 compiz-boxmenu-1.1.12/deskmenu.c:39:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_FILENAME [valueFlowBailoutIncompleteVar] 2.18.0 compiz-boxmenu-1.1.12/deskmenu.c:57:9: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu.c:72:9: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu.c:79:9: error: Memory leak: context [memleak] 2.18.0 compiz-boxmenu-1.1.12/deskmenu.c:88:9: error: Memory leak: context [memleak] DONE