2026-07-30 19:01 ftp://ftp.de.debian.org/debian/pool/main/x/xdg-desktop-portal-xapp/xdg-desktop-portal-xapp_1.1.3.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 -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: a156364 (2026-07-30 18:29:55 +0200) count: 58 58 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: xdg-desktop-portal-xapp-1.1.3/src/lockdown.c:70:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SETTINGS_BIND_DEFAULT [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/request.c:36:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/request.c:66:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request_parent_class [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/request.c:97:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/background.c:53:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/background.c:76:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/background.c:157:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/background.c:261:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/request.c:53:24: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] xdg-desktop-portal-xapp-1.1.3/src/session.c:155:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable session_parent_class [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/session.c:165:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable session_parent_class [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/session.c:188:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/utils.c:52:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/session.c:112:35: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'session_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdg-desktop-portal-xapp-1.1.3/src/session.c:181:33: note: You might need to cast the function pointer here xdg-desktop-portal-xapp-1.1.3/src/session.c:112:35: note: Parameter 'pspec' can be declared as pointer to const xdg-desktop-portal-xapp-1.1.3/src/session.c:131:35: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'session_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdg-desktop-portal-xapp-1.1.3/src/session.c:182:33: note: You might need to cast the function pointer here xdg-desktop-portal-xapp-1.1.3/src/session.c:131:35: note: Parameter 'pspec' can be declared as pointer to const xdg-desktop-portal-xapp-1.1.3/src/session.c:133:12: style: Variable 'session' can be declared as pointer to const [constVariablePointer] xdg-desktop-portal-xapp-1.1.3/src/session.c:169:24: style: Parameter 'session' can be declared as pointer to const [constParameterPointer] xdg-desktop-portal-xapp-1.1.3/src/wallpaper.c:59:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSettings [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/wallpaper.c:115:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFile [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/wallpaper.c:158:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFile [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/wallpaper.c:176:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/screenshot.c:156:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/screenshot.c:198:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USER_DIRECTORY_PICTURES [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/screenshot.c:227:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/screenshot.c:262:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/screenshot.c:354:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:83:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_DEBUG [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:100:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:174:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:43:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:79:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:104:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:192:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:265:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:307:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:339:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:454:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inhibit_session_parent_class [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:500:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:559:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/settings.c:171:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/settings.c:227:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariantBuilder [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/settings.c:307:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:80:27: 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-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:256:57: note: You might need to cast the function pointer here xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:80:27: note: Parameter 'user_data' can be declared as pointer to const xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:154:36: style: Parameter 'connection' can be declared as pointer to const. However it seems that 'on_name_acquired' is a callback function, if 'connection' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:275:30: note: You might need to cast the function pointer here xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:154:36: note: Parameter 'connection' can be declared as pointer to const xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:156:36: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_name_acquired' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:275:30: note: You might need to cast the function pointer here xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:156:36: note: Parameter 'user_data' can be declared as pointer to const xdg-desktop-portal-xapp-1.1.3/src/xdg-desktop-portal-xapp.c:175:21: style: Variable 'session_bus' can be declared as pointer to const [constVariablePointer] xdg-desktop-portal-xapp-1.1.3/src/screenshot.c:284:22: error: Return value of allocation function 'g_find_program_in_path' is not stored. [leakReturnValNotUsed] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:388:65: error: Allocation with g_variant_builder_end, g_signal_emit_by_name doesn't release it. [leakNoVarFunctionCall] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:135:34: style: Argument 'client' shadows outer variable [shadowVariable] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:25:20: note: Shadowed variable xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:135:34: note: Shadow argument xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:186:30: style: Parameter 'data' can be declared as pointer to const. However it seems that 'query_end_response' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:203:44: note: You might need to cast the function pointer here xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:186:30: note: Parameter 'data' can be declared as pointer to const xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:196:42: style: Parameter 'proxy' can be declared as pointer to const [constParameterPointer] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:433:23: style: Variable 'session' can be declared as pointer to const [constVariablePointer] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:444:19: style: Variable 'inhibit_session' can be declared as pointer to const [constVariablePointer] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:458:39: style: Parameter 'inhibit_session' can be declared as pointer to const [constParameterPointer] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:545:36: style: Parameter 'object' can be declared as pointer to const. However it seems that 'global_active_changed_cb' is a callback function, if 'object' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:679:9: note: You might need to cast the function pointer here xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:545:36: note: Parameter 'object' can be declared as pointer to const xdg-desktop-portal-xapp-1.1.3/src/inhibit.c:627:66: error: Uninitialized variable: active [legacyUninitvar] xdg-desktop-portal-xapp-1.1.3/src/settings.c:168:18: style: Variable 'gtk_settings' can be declared as pointer to const [constVariablePointer] xdg-desktop-portal-xapp-1.1.3/src/settings.c:302:45: style: Parameter 'gsettings' can be declared as pointer to const. However it seems that 'on_settings_changed' is a callback function, if 'gsettings' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xdg-desktop-portal-xapp-1.1.3/src/settings.c:363:9: note: You might need to cast the function pointer here xdg-desktop-portal-xapp-1.1.3/src/settings.c:302:45: note: Parameter 'gsettings' can be declared as pointer to const diff: DONE