2026-07-26 13:25 ftp://ftp.de.debian.org/debian/pool/main/x/xdg-desktop-portal-phosh/xdg-desktop-portal-phosh_0.56.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 -j96 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.21.0 head-info: 6640862 (2026-07-26 07:32:28 -0400) count: 54 54 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: xdg-desktop-portal-phosh-0.56.0/src/pmp-request.c:36:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/pmp-request.c:66:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request_parent_class [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/pmp-request.c:97:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:141:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_ptr_array_unref [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:162:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_ptr_array_unref [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:212:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_FILE_MONITOR_EVENT [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:264:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/service.c:24:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PtApplication [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/pmp-request.c:53:24: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] xdg-desktop-portal-phosh-0.56.0/src/pmp-notification.c:63:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/cli.c:28:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PtImplThumbnailer [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/cli.c:52:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PtImplThumbnailer [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/cli.c:112:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/subprojects/pfs/src/examples/example.c:18:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GStrv [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/subprojects/pfs/src/examples/example.c:39:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GOptionContext [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/pmp-notification.c:60:35: style: Parameter 'parameter' can be declared as pointer to const. However it seems that 'activate_action' is a callback function, if 'parameter' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdg-desktop-portal-phosh-0.56.0/src/pmp-notification.c:137:29: note: You might need to cast the function pointer here xdg-desktop-portal-phosh-0.56.0/src/pmp-notification.c:60:35: note: Parameter 'parameter' can be declared as pointer to const xdg-desktop-portal-phosh-0.56.0/src/xdg-desktop-portal-phosh.c:50:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_DEBUG [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/xdg-desktop-portal-phosh.c:66:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/xdg-desktop-portal-phosh.c:91:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PMP_DBUS_NAME [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/xdg-desktop-portal-phosh.c:107:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:147:30: style:inconclusive: Function 'fc_monitor_start' argument 1 names different: declaration 'monitor' definition 'self'. [funcArgNamesDifferent] xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.h:33:35: note: Function 'fc_monitor_start' argument 1 names different: declaration 'monitor' definition 'self'. xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:147:30: note: Function 'fc_monitor_start' argument 1 names different: declaration 'monitor' definition 'self'. xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:159:29: style:inconclusive: Function 'fc_monitor_stop' argument 1 names different: declaration 'monitor' definition 'self'. [funcArgNamesDifferent] xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.h:34:35: note: Function 'fc_monitor_stop' argument 1 names different: declaration 'monitor' definition 'self'. xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:159:29: note: Function 'fc_monitor_stop' argument 1 names different: declaration 'monitor' definition 'self'. xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:270:23: style:inconclusive: Function 'update_done' argument 3 names different: declaration 'user_data' definition 'data'. [funcArgNamesDifferent] xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:98:81: note: Function 'update_done' argument 3 names different: declaration 'user_data' definition 'data'. xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:270:23: note: Function 'update_done' argument 3 names different: declaration 'user_data' definition 'data'. xdg-desktop-portal-phosh-0.56.0/src/fc-monitor.c:127:29: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] xdg-desktop-portal-phosh-0.56.0/src/xdg-desktop-portal-phosh.c:47:33: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'message_handler' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdg-desktop-portal-phosh-0.56.0/src/xdg-desktop-portal-phosh.c:145:49: note: You might need to cast the function pointer here xdg-desktop-portal-phosh-0.56.0/src/xdg-desktop-portal-phosh.c:47:33: note: Parameter 'user_data' can be declared as pointer to const xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.c:217:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/pmp-settings.c:94:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/pmp-settings.c:188:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/pmp-settings.c:209:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariantBuilder [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/pmp-settings.c:310:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/pmp-settings.c:354:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:53:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_WARNING [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:80:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNOME_DESKTOP_THUMBNAIL_SIZE_NORMAL [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:164:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:193:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:213:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:239:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:279:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFile [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:354:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:370:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:405:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:428:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFile [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:487:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pt_application_parent_class [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:561:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_DEBUG [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:593:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:608:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:621:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PT_SERVICE_DBUS_NAME [valueFlowBailoutIncompleteVar] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:152:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] xdg-desktop-portal-phosh-0.56.0/src/thumbnailer/application.c:50:20: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.c:352:86: warning: Either the condition 'category' is redundant or there is possible null pointer dereference: category. [nullPointerRedundantCheck] xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.c:347:9: note: Assuming that condition 'category' is not redundant xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.c:352:86: note: Null pointer dereference xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.c:440:44: style:inconclusive: Function 'pmp_fdo_add_notification' argument 5 names different: declaration 'activate' definition 'activate_action'. [funcArgNamesDifferent] xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.h:27:84: note: Function 'pmp_fdo_add_notification' argument 5 names different: declaration 'activate' definition 'activate_action'. xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.c:440:44: note: Function 'pmp_fdo_add_notification' argument 5 names different: declaration 'activate' definition 'activate_action'. xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.c:69:11: style: Variable 'l' can be declared as pointer to const [constVariablePointer] xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.c:84:11: style: Variable 'l' can be declared as pointer to const [constVariablePointer] xdg-desktop-portal-phosh-0.56.0/src/pmp-fdo-notification.c:295:17: style: Variable 'image' can be declared as pointer to const [constVariablePointer] diff: DONE