2025-11-21 13:02 ftp://ftp.de.debian.org/debian/pool/main/g/gkrelluim/gkrelluim_0.3.2.orig.tar.gz 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-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 3 15 elapsed-time: 0.1 0.2 head-timing-info: old-timing-info: head results: gkrelluim-0.3.2/src/uim-helper.c:104:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] gkrelluim-0.3.2/src/gkrelluim.c:119:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] gkrelluim-0.3.2/src/gkrelluim.c:259:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] diff: head gkrelluim-0.3.2/src/uim-helper.c:104:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:168:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:207:59: style: Parameter 'menu_shell' can be declared as pointer to const. However it seems that 'prop_menu_shell_deactivate' is a callback function, if 'menu_shell' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gkrelluim-0.3.2/src/uim-helper.c:300:3: note: You might need to cast the function pointer here gkrelluim-0.3.2/src/uim-helper.c:207:59: note: Parameter 'menu_shell' can be declared as pointer to const 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:208:54: style: Parameter 'data' can be declared as pointer to const. However it seems that 'prop_menu_shell_deactivate' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gkrelluim-0.3.2/src/uim-helper.c:300:3: note: You might need to cast the function pointer here gkrelluim-0.3.2/src/uim-helper.c:208:54: note: Parameter 'data' can be declared as pointer to const 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:228:18: style: Variable 'menu_item_list' is assigned a value that is never used. [unreadVariable] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:254:14: 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 gkrelluim-0.3.2/src/uim-helper.c:260:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:438:35: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:586:72: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:623:54: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:629:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:640:10: style: Variable 'list' can be declared as pointer to const [constVariablePointer] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:665:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UIM_PIXMAPSDIR [valueFlowBailoutIncompleteVar] 2.18.0 gkrelluim-0.3.2/src/uim-helper.c:715:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uim_quit [valueFlowBailoutIncompleteVar] DONE