mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 20:33:08 +02:00
Merge branch 'debug-controller-unused' into 'main'
gdebugcontrollerdbus: Mark a variable as G_GNUC_UNUSED See merge request GNOME/glib!2519
This commit is contained in:
commit
420238e0c4
@ -342,13 +342,14 @@ authorize_cb (GObject *object,
|
|||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
GDebugControllerDBus *self = G_DEBUG_CONTROLLER_DBUS (object);
|
GDebugControllerDBus *self = G_DEBUG_CONTROLLER_DBUS (object);
|
||||||
GDebugControllerDBusPrivate *priv = g_debug_controller_dbus_get_instance_private (self);
|
GDebugControllerDBusPrivate *priv G_GNUC_UNUSED /* when compiling with G_DISABLE_ASSERT */;
|
||||||
GTask *task = G_TASK (result);
|
GTask *task = G_TASK (result);
|
||||||
GDBusMethodInvocation *invocation = g_task_get_task_data (task);
|
GDBusMethodInvocation *invocation = g_task_get_task_data (task);
|
||||||
GVariant *parameters = g_dbus_method_invocation_get_parameters (invocation);
|
GVariant *parameters = g_dbus_method_invocation_get_parameters (invocation);
|
||||||
gboolean enabled = FALSE;
|
gboolean enabled = FALSE;
|
||||||
gboolean authorized;
|
gboolean authorized;
|
||||||
|
|
||||||
|
priv = g_debug_controller_dbus_get_instance_private (self);
|
||||||
authorized = g_task_propagate_boolean (task, NULL);
|
authorized = g_task_propagate_boolean (task, NULL);
|
||||||
|
|
||||||
if (!authorized)
|
if (!authorized)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user