]> git.0d.be Git - empathy.git/commitdiff
ignore return value of main_window_setup_balance_create_widget()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 5 May 2011 09:27:28 +0000 (11:27 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 5 May 2011 09:29:28 +0000 (11:29 +0200)
fix unused-but-set-variable warnings with gcc 4.6. Thanks to Marc Plano-Lesay
for reporting.

src/empathy-main-window.c

index c31f237c721bbe0c789bce9d135e35754a98ba29..0cef0e10f47b06842b26f9666e47a7e7f3b3af48 100644 (file)
@@ -1020,7 +1020,6 @@ main_window_setup_balance_conn_ready (GObject      *conn,
        EmpathyMainWindowPriv *priv = GET_PRIV (window);
        TpAccount *account = g_object_get_data (conn, "account");
        GtkAction *action;
-       GtkWidget *widget;
        GError *error = NULL;
 
        if (!tp_proxy_prepare_finish (conn, result, &error)) {
@@ -1047,7 +1046,7 @@ main_window_setup_balance_conn_ready (GObject      *conn,
        gtk_action_set_visible (priv->view_balance_show_in_roster, TRUE);
 
        /* create the display widget */
-       widget = main_window_setup_balance_create_widget (window, action);
+       main_window_setup_balance_create_widget (window, action);
 
        /* request the current balance and monitor for any changes */
        tp_cli_dbus_properties_call_get_all (conn, -1,