2025-05-10 22:23 ftp://ftp.de.debian.org/debian/pool/main/g/gnome-firmware/gnome-firmware_47.0.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: beb3362 (2025-05-10 14:33:23 +0200) count: 67 67 elapsed-time: 0.2 0.3 head-timing-info: old-timing-info: head results: gnome-firmware-47.0/src/gfu-device-row.c:26:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-device-row.c:135:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfu_device_row_parent_class [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-device-row.c:79:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] gnome-firmware-47.0/src/gfu-common.c:62:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GString [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-common.c:123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GString [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-common.c:140:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_RELEASE_FLAG_NONE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-common.c:188:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GString [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-common.c:207:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDBusConnection [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-common.c:252:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDBusConnection [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-common.c:298:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_DEVICE_FLAG_NONE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-common.c:453:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_DEVICE_FLAG_INTERNAL [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-common.c:591:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-release-row.c:58:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_RELEASE_FLAG_IS_UPGRADE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-release-row.c:157:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfu_release_row_parent_class [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-release-row.c:86:24: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] gnome-firmware-47.0/src/gfu-main.c:74:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:107:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:131:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:154:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:178:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_ptr_array_unref [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:187:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GHashTable [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:272:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:288:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_DEVICE_PROBLEM_SYSTEM_POWER_TOO_LOW [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:343:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GString [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:378:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:533:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_YES [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:548:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_YES [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:606:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:675:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:705:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:908:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1023:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1041:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_STATUS_IDLE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1075:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1107:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1121:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1202:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_REQUEST_KIND_POST [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1254:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable helper [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1294:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_CLIENT_DOWNLOAD_FLAG_NONE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1306:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1413:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1439:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GString [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1498:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_RELEASE_FLAG_IS_UPGRADE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1567:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1608:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_DEVICE_FLAG_AFFECTS_FDE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1622:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1650:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_YES [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1666:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1685:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1698:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_YES [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1714:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1747:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADW_TYPE_ABOUT_WINDOW [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1799:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1926:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_DEVICE_FLAG_UPDATABLE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1959:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1978:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:2008:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:2115:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:2152:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkCssProvider [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:2249:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FWUPD_REQUEST_KIND_IMMEDIATE [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:2298:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-firmware-47.0/src/gfu-main.c:1775:1: error: Memory leak: about [memleak] gnome-firmware-47.0/src/gfu-main.c:561:48: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] gnome-firmware-47.0/src/gfu-main.c:1736:9: style: Variable 'windows' can be declared as pointer to const [constVariablePointer] gnome-firmware-47.0/src/gfu-main.c:1737:13: style: Variable 'parent' can be declared as pointer to const [constVariablePointer] gnome-firmware-47.0/src/gfu-main.c:2098:51: style: Parameter 'banner' can be declared as pointer to const. However it seems that 'gfu_main_banner_device_list_clicked_cb' is a callback function, if 'banner' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-firmware-47.0/src/gfu-main.c:2192:2: note: You might need to cast the function pointer here gnome-firmware-47.0/src/gfu-main.c:2098:51: note: Parameter 'banner' can be declared as pointer to const gnome-firmware-47.0/src/gfu-main.c:2098:68: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'gfu_main_banner_device_list_clicked_cb' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-firmware-47.0/src/gfu-main.c:2192:2: note: You might need to cast the function pointer here gnome-firmware-47.0/src/gfu-main.c:2098:68: note: Parameter 'user_data' can be declared as pointer to const diff: DONE