2025-09-13 21:33 ftp://ftp.de.debian.org/debian/pool/main/l/lxlauncher/lxlauncher_0.2.8.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=cairo --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-79-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: fea194b (2025-09-13 13:40:14 +0200) count: 12 37 elapsed-time: 0.2 0.5 head-timing-info: old-timing-info: head results: lxlauncher-0.2.8/src/exo-wrap-table.c:104:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] lxlauncher-0.2.8/src/exo-wrap-table.c:104:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] lxlauncher-0.2.8/src/lxlauncher.c:167:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] lxlauncher-0.2.8/src/lxlauncher.c:167:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] lxlauncher-0.2.8/src/misc.c:313:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SPAWN_SEARCH_PATH [valueFlowBailoutIncompleteVar] lxlauncher-0.2.8/src/misc.c:48:30: style: Variable 'suffix' can be declared as pointer to const [constVariablePointer] lxlauncher-0.2.8/src/vfs-execute.c:99:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] lxlauncher-0.2.8/src/vfs-execute.c:99:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] lxlauncher-0.2.8/src/vfs-utils.c:32:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_LOOKUP_USE_BUILTIN [valueFlowBailoutIncompleteVar] lxlauncher-0.2.8/src/working-area.c:87:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] lxlauncher-0.2.8/src/working-area.c:145:57: style:inconclusive: Function 'get_working_area' argument 2 names different: declaration 'rect' definition 'area'. [funcArgNamesDifferent] lxlauncher-0.2.8/src/working-area.h:5:56: note: Function 'get_working_area' argument 2 names different: declaration 'rect' definition 'area'. lxlauncher-0.2.8/src/working-area.c:145:57: note: Function 'get_working_area' argument 2 names different: declaration 'rect' definition 'area'. lxlauncher-0.2.8/src/working-area.c:41:10: style: Variable 'workareas' can be declared as pointer to const [constVariablePointer] diff: head lxlauncher-0.2.8/src/exo-wrap-table.c:104:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head lxlauncher-0.2.8/src/exo-wrap-table.c:104:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 lxlauncher-0.2.8/src/exo-wrap-table.c:134:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INVALID [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/exo-wrap-table.c:160:3: style: g_type_class_add_private has been deprecated since version 2.58 and should not be used in newly-written code. Use the G_ADD_PRIVATE() macro with the G_DEFINE_* family of macros to add instance private data to a type. [prohibitedg_type_class_add_privateCalled] 2.18.0 lxlauncher-0.2.8/src/exo-wrap-table.c:246:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_NO_WINDOW [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/exo-wrap-table.c:337:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable border_width [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/exo-wrap-table.c:366:46: style: Parameter 'allocation' can be declared as pointer to const. However it seems that 'exo_wrap_table_size_allocate' is a callback function, if 'allocation' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lxlauncher-0.2.8/src/exo-wrap-table.c:177:36: note: You might need to cast the function pointer here lxlauncher-0.2.8/src/exo-wrap-table.c:366:46: note: Parameter 'allocation' can be declared as pointer to const 2.18.0 lxlauncher-0.2.8/src/exo-wrap-table.c:456:17: style: Variable 'table' can be declared as pointer to const [constVariablePointer] 2.18.0 lxlauncher-0.2.8/src/exo-wrap-table.c:503:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/exo-wrap-table.c:697:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable homogeneous [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:157:18: style: Variable 'settings' can be declared as pointer to const [constVariablePointer] head lxlauncher-0.2.8/src/lxlauncher.c:167:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head lxlauncher-0.2.8/src/lxlauncher.c:167:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:171:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_CAN_FOCUS [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:176:11: style: gtk_vbox_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_VERTICAL 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_vbox_newCalled] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:316:19: style: Variable 'oc' can be declared as pointer to const [constVariablePointer] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:340:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_BILINEAR [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:448:19: style: Variable 'top' can be declared as pointer to const [constVariablePointer] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:458:23: style: Variable 'top2' can be declared as pointer to const [constVariablePointer] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:543:13: style: Variable 'xev' can be declared as pointer to const [constVariablePointer] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:556:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_FILTER_CONTINUE [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:559:42: style: Parameter 'window' can be declared as pointer to const. However it seems that 'window_delete' is a callback function, if 'window' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lxlauncher-0.2.8/src/lxlauncher.c:986:5: note: You might need to cast the function pointer here lxlauncher-0.2.8/src/lxlauncher.c:559:42: note: Parameter 'window' can be declared as pointer to const 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:559:59: style: Parameter 'data' can be declared as pointer to const. However it seems that 'window_delete' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lxlauncher-0.2.8/src/lxlauncher.c:986:5: note: You might need to cast the function pointer here lxlauncher-0.2.8/src/lxlauncher.c:559:59: note: Parameter 'data' can be declared as pointer to const 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:620:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MENU_CACHE_TYPE_DIR [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:722:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MENU_CACHE_TYPE_DIR [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:726:21: style: gtk_vbox_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_VERTICAL 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_vbox_newCalled] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:728:17: 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 lxlauncher-0.2.8/src/lxlauncher.c:729:21: 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 lxlauncher-0.2.8/src/lxlauncher.c:829:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:831:5: error: Mismatching allocation and deallocation: file [mismatchAllocDealloc] lxlauncher-0.2.8/src/lxlauncher.c:828:12: note: Mismatching allocation and deallocation: file lxlauncher-0.2.8/src/lxlauncher.c:831:5: note: Mismatching allocation and deallocation: file 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:872:18: style: Variable 'settings' can be declared as pointer to const [constVariablePointer] 2.18.0 lxlauncher-0.2.8/src/lxlauncher.c:888:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_NONE [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/vfs-execute.c:129:13: style: Redundant initialization for 'new_env'. The initialized value is overwritten before it is read. [redundantInitialization] lxlauncher-0.2.8/src/vfs-execute.c:119:20: note: new_env is initialized lxlauncher-0.2.8/src/vfs-execute.c:129:13: note: new_env is overwritten 2.18.0 lxlauncher-0.2.8/src/vfs-execute.c:144:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdk_error_trap_push [valueFlowBailoutIncompleteVar] 2.18.0 lxlauncher-0.2.8/src/vfs-execute.c:61:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] head lxlauncher-0.2.8/src/vfs-execute.c:99:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head lxlauncher-0.2.8/src/vfs-execute.c:99:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] DONE