2026-01-27 16:27 ftp://ftp.de.debian.org/debian/pool/main/g/gnome-session/gnome-session_49.2.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 -j4 platform: Linux-6.12.63+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.69 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.19.0 head-info: 0c2b64b (2026-01-27 11:35:55 +0100) count: 131 131 elapsed-time: 0.2 0.7 head-timing-info: old-timing-info: head results: gnome-session-49.2/gnome-session/gsm-client.c:91:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-app.c:124:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_app_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-client.c:140:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_client_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-app.c:142:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-client.c:264:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_client_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-app.c:223:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAppLaunchContext [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-client.c:280:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-app.c:268:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-app.c:287:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDesktopAppInfo [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-client.c:163:29: style: Parameter 'client' can be declared as pointer to const [constParameterPointer] gnome-session-49.2/gnome-session/gsm-client.c:202:41: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_client_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-client.c:273:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-client.c:202:41: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-client.c:223:38: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_client_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-client.c:272:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-client.c:223:38: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-client.c:225:20: style: Variable 'self' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-app.c:69:23: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] gnome-session-49.2/gnome-session/gsm-inhibitor.c:212:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_inhibitor_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-inhibitor.c:256:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_TYPE_SESSION [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-inhibitor.c:488:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_inhibitor_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-inhibitor.c:504:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-inhibitor.c:289:58: warning: Either the condition 'client_id!=NULL' is redundant or there is possible null pointer dereference: client_id. [nullPointerRedundantCheck] gnome-session-49.2/gnome-session/gsm-inhibitor.c:291:23: note: Assuming that condition 'client_id!=NULL' is not redundant gnome-session-49.2/gnome-session/gsm-inhibitor.c:289:58: note: Null pointer dereference gnome-session-49.2/gnome-session/gsm-inhibitor.c:399:44: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_inhibitor_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-inhibitor.c:499:46: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-inhibitor.c:399:44: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-inhibitor.c:434:41: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_inhibitor_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-inhibitor.c:498:46: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-inhibitor.c:434:41: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-inhibitor.c:436:23: style: Variable 'self' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-session-fill.c:119:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-presence.c:236:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-presence.c:358:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_presence_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-presence.c:488:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_presence_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-presence.c:510:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_UINT [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-presence.c:164:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gnome-session-49.2/gnome-session/gsm-presence.c:191:17: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gnome-session-49.2/gnome-session/gsm-presence.c:204:17: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gnome-session-49.2/gnome-session/gsm-presence.c:204:17: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gnome-session-49.2/gnome-session/gsm-presence.c:416:46: style:inconclusive: Function 'gsm_presence_set_idle_timeout' argument 2 names different: declaration 'n_seconds' definition 'timeout'. [funcArgNamesDifferent] gnome-session-49.2/gnome-session/gsm-presence.h:71:65: note: Function 'gsm_presence_set_idle_timeout' argument 2 names different: declaration 'n_seconds' definition 'timeout'. gnome-session-49.2/gnome-session/gsm-presence.c:416:46: note: Function 'gsm_presence_set_idle_timeout' argument 2 names different: declaration 'n_seconds' definition 'timeout'. gnome-session-49.2/gnome-session/gsm-presence.c:213:42: style: Parameter 'signal_name' can be declared as pointer to const. However it seems that 'on_screensaver_dbus_signal' is a callback function, if 'signal_name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-presence.c:385:17: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-presence.c:213:42: note: Parameter 'signal_name' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-presence.c:291:59: style: Parameter 'status_text' can be declared as pointer to const. However it seems that 'gsm_presence_set_status_text_dbus' is a callback function, if 'status_text' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-presence.c:343:9: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-presence.c:291:59: note: Parameter 'status_text' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-presence.c:431:43: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_presence_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-presence.c:499:46: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-presence.c:431:43: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-presence.c:454:40: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_presence_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-presence.c:498:46: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-presence.c:454:40: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-presence.c:456:22: style: Variable 'self' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-shell.c:119:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READABLE [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-shell.c:207:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_TYPE_SESSION [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-shell.c:231:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_shell_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-store.c:322:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_store_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-store.c:342:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-store.c:393:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_store_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-manager.c:667:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT32 [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-manager.c:1128:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_manager_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-manager.c:1263:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_manager_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-shell.c:105:38: style:inconclusive: Function 'gsm_shell_class_init' argument 1 names different: declaration 'klass' definition 'shell_class'. [funcArgNamesDifferent] gnome-session-49.2/gnome-session/gsm-shell.c:74:56: note: Function 'gsm_shell_class_init' argument 1 names different: declaration 'klass' definition 'shell_class'. gnome-session-49.2/gnome-session/gsm-shell.c:105:38: note: Function 'gsm_shell_class_init' argument 1 names different: declaration 'klass' definition 'shell_class'. gnome-session-49.2/gnome-session/gsm-shell.c:216:27: style:inconclusive: Function 'gsm_shell_init' argument 1 names different: declaration 'ck' definition 'shell'. [funcArgNamesDifferent] gnome-session-49.2/gnome-session/gsm-shell.c:75:56: note: Function 'gsm_shell_init' argument 1 names different: declaration 'ck' definition 'shell'. gnome-session-49.2/gnome-session/gsm-shell.c:216:27: note: Function 'gsm_shell_init' argument 1 names different: declaration 'ck' definition 'shell'. gnome-session-49.2/gnome-session/gsm-store.c:209:26: style: Parameter 'object' can be declared as pointer to const. However it seems that '_remove_all' is a callback function, if 'object' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-store.c:223:35: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-store.c:209:26: note: Parameter 'object' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-store.c:210:26: style: Parameter 'data' can be declared as pointer to const. However it seems that '_remove_all' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-store.c:223:35: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-store.c:210:26: note: Parameter 'data' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-store.c:274:39: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_store_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-store.c:331:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-store.c:274:39: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-store.c:294:37: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_store_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-store.c:330:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-store.c:294:37: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-store.c:296:19: style: Variable 'self' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-shell.c:87:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_shell_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-shell.c:113:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-shell.c:87:42: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-shell.c:89:19: style: Variable 'shell' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-shell.c:278:42: style: Parameter 'builder' can be declared as pointer to const. However it seems that 'add_inhibitor_to_array' is a callback function, if 'builder' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-shell.c:291:43: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-shell.c:278:42: note: Parameter 'builder' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-shell.c:329:48: style: Parameter 'signal_name' can be declared as pointer to const. However it seems that 'on_end_session_dialog_dbus_signal' is a callback function, if 'signal_name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-shell.c:449:17: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-shell.c:329:48: note: Parameter 'signal_name' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-system.c:51:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-system.c:99:38: style: Parameter 'gsn' can be declared as pointer to const [constParameterPointer] gnome-session-49.2/gnome-session/gsm-system.c:223:34: style: Parameter 'system' can be declared as pointer to const [constParameterPointer] gnome-session-49.2/gnome-session/gsm-manager.c:2055:21: style: Condition '!res' is always false [knownConditionTrueFalse] gnome-session-49.2/gnome-session/gsm-manager.c:2054:40: note: Calling function 'register_manager' returns 1 gnome-session-49.2/gnome-session/gsm-manager.c:2054:40: note: Assignment 'res=register_manager(manager_object)', assigned value is 1 gnome-session-49.2/gnome-session/gsm-manager.c:2055:21: note: Condition '!res' is always false gnome-session-49.2/gnome-session/gsm-manager.c:1711:98: error: Dereferencing 'client' after it is deallocated / released [deallocuse] gnome-session-49.2/gnome-session/gsm-manager.c:1741:26: warning: Either the condition '(reason)==NULL' is redundant or there is possible null pointer dereference: reason. [nullPointerRedundantCheck] gnome-session-49.2/gnome-session/gsm-manager.c:1745:18: note: Assuming that condition '(reason)==NULL' is not redundant gnome-session-49.2/gnome-session/gsm-manager.c:1741:26: note: Null pointer dereference gnome-session-49.2/gnome-session/gsm-util.c:249:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_OPTIMIZE [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-util.c:335:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_OPTIMIZE [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-main.c:38:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-main.c:72:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-main.c:118:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-main.c:181:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-manager.c:198:32: style: Parameter 'cookie_ap' can be declared as pointer to const. However it seems that '_find_by_cookie' is a callback function, if 'cookie_ap' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-manager.c:1784:67: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-manager.c:198:32: note: Parameter 'cookie_ap' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-manager.c:480:35: style: Parameter 'data' can be declared as pointer to const. However it seems that 'inhibitor_has_flag' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-manager.c:1824:76: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-manager.c:480:35: note: Parameter 'data' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-manager.c:495:23: style: Variable 'inhibitor' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-manager.c:517:23: style: Variable 'inhibitor' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-manager.c:1095:42: style: Parameter 'object' can be declared as pointer to const. However it seems that 'gsm_manager_set_property' is a callback function, if 'object' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-manager.c:1272:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-manager.c:1095:42: note: Parameter 'object' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-manager.c:1098:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_manager_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-manager.c:1272:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-manager.c:1098:42: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-manager.c:1107:39: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_manager_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-manager.c:1271:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-manager.c:1107:39: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-manager.c:1109:21: style: Variable 'self' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-manager.c:1464:44: style: Parameter 'manager' can be declared as pointer to const. However it seems that 'gsm_manager_setenv' is a callback function, if 'manager' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-manager.c:1946:9: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-manager.c:1464:44: note: Parameter 'manager' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-manager.c:1575:58: style: Parameter 'manager' can be declared as pointer to const. However it seems that 'gsm_manager_initialization_error' is a callback function, if 'manager' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-manager.c:1932:9: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-manager.c:1575:58: note: Parameter 'manager' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-manager.c:1816:23: style: Variable 'inhibitor' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-manager.c:1870:56: style: Parameter 'manager' can be declared as pointer to const. However it seems that 'gsm_manager_is_session_running' is a callback function, if 'manager' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-manager.c:1936:9: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-manager.c:1870:56: note: Parameter 'manager' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-manager.c:2203:21: style: Variable 'dup' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-systemd.c:113:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsm_systemd_parent_class [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-systemd.c:234:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-systemd.c:272:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-systemd.c:297:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-systemd.c:325:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GStrv [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-util.c:259:17: error: Memory leak: name_regex [memleak] gnome-session-49.2/gnome-session/leader-systemd.c:39:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_main_loop_unref [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-systemd.c:51:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-systemd.c:102:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-systemd.c:119:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-systemd.c:148:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-systemd.c:158:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-systemd.c:178:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/leader-systemd.c:282:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/gsm-systemd.c:120:41: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_systemd_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-systemd.c:159:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-systemd.c:120:41: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-systemd.c:137:39: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gsm_systemd_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-systemd.c:158:38: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-systemd.c:137:39: note: Parameter 'pspec' can be declared as pointer to const gnome-session-49.2/gnome-session/gsm-systemd.c:139:21: style: Variable 'self' can be declared as pointer to const [constVariablePointer] gnome-session-49.2/gnome-session/gsm-systemd.c:438:36: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] gnome-session-49.2/gnome-session/gsm-systemd.c:460:33: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] gnome-session-49.2/gnome-session/gsm-systemd.c:582:41: style: Parameter 'system' can be declared as pointer to const. However it seems that 'gsm_systemd_can_switch_user' is a callback function, if 'system' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/gsm-systemd.c:1038:34: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/gsm-systemd.c:582:41: note: Parameter 'system' can be declared as pointer to const gnome-session-49.2/gnome-session/service-main.c:74:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/service-main.c:143:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/service-main.c:75:21: style: Local variable 'manager' shadows outer variable [shadowVariable] gnome-session-49.2/gnome-session/service-main.c:37:20: note: Shadowed declaration gnome-session-49.2/gnome-session/service-main.c:75:21: note: Shadow variable gnome-session-49.2/gnome-session/service-main.c:47:32: style: Parameter 'connection' can be declared as pointer to const. However it seems that 'on_name_lost' is a callback function, if 'connection' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/service-main.c:177:41: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/service-main.c:47:32: note: Parameter 'connection' can be declared as pointer to const gnome-session-49.2/gnome-session/service-main.c:93:22: style: Parameter 'data' can be declared as pointer to const. However it seems that 'sigusr2_cb' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/service-main.c:122:37: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/service-main.c:93:22: note: Parameter 'data' can be declared as pointer to const gnome-session-49.2/gnome-session/service-main.c:100:22: style: Parameter 'data' can be declared as pointer to const. However it seems that 'sigusr1_cb' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/service-main.c:121:37: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/service-main.c:100:22: note: Parameter 'data' can be declared as pointer to const gnome-session-49.2/gnome-session/service-main.c:133:35: style: Parameter 'connection' can be declared as pointer to const. However it seems that 'on_bus_acquired' is a callback function, if 'connection' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/service-main.c:175:41: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/service-main.c:133:35: note: Parameter 'connection' can be declared as pointer to const gnome-session-49.2/gnome-session/service-main.c:135:27: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_bus_acquired' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/service-main.c:175:41: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/service-main.c:135:27: note: Parameter 'data' can be declared as pointer to const gnome-session-49.2/gnome-session/test-client-dbus.c:91:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/test-client-dbus.c:156:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/test-client-dbus.c:206:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/test-client-dbus.c:235:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_ERROR [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-ctl.c:50:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-ctl.c:64:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDBusConnection [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-ctl.c:90:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDBusConnection [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-ctl.c:118:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDBusConnection [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-ctl.c:155:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-ctl.c:167:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-ctl.c:191:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-ctl.c:238:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gnome-session-49.2/gnome-session/test-client-dbus.c:126:37: style: Parameter 'signal_name' can be declared as pointer to const. However it seems that 'on_client_dbus_signal' is a callback function, if 'signal_name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-session-49.2/gnome-session/test-client-dbus.c:176:17: note: You might need to cast the function pointer here gnome-session-49.2/gnome-session/test-client-dbus.c:126:37: note: Parameter 'signal_name' can be declared as pointer to const gnome-session-49.2/tools/gnome-session-quit.c:125:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-quit.c:175:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-inhibit.c:48:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GStrv [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-inhibit.c:123:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-inhibit.c:158:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSM_INHIBITOR_FLAG_LOGOUT [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-inhibit.c:174:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDBusConnection [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-inhibit.c:319:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] gnome-session-49.2/tools/gnome-session-inhibit.c:356:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] diff: DONE