summaryrefslogtreecommitdiff
path: root/modules/printbackends/cloudprint/gtkcloudprintaccount.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-05-30 21:19:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-06-02 09:08:14 -0400
commit23032587dba46c281fffae5ddd23672cc6f6c777 (patch)
tree52d94eb37598d731556912bfc057b626cad4a11f /modules/printbackends/cloudprint/gtkcloudprintaccount.c
parentfdb9a8e142becbb3b00d56e741fba1f1a33ee86b (diff)
downloadgtk+-23032587dba46c281fffae5ddd23672cc6f6c777.tar.gz
printing: Fix compiler warnings
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
Diffstat (limited to 'modules/printbackends/cloudprint/gtkcloudprintaccount.c')
-rw-r--r--modules/printbackends/cloudprint/gtkcloudprintaccount.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/printbackends/cloudprint/gtkcloudprintaccount.c b/modules/printbackends/cloudprint/gtkcloudprintaccount.c
index b35a1304f1..ee65a18287 100644
--- a/modules/printbackends/cloudprint/gtkcloudprintaccount.c
+++ b/modules/printbackends/cloudprint/gtkcloudprintaccount.c
@@ -490,16 +490,14 @@ gtk_cloudprint_account_printer (GtkCloudprintAccount *account,
gpointer user_data)
{
RestProxyCall *call;
+ GTask *task;
GError *error = NULL;
GTK_NOTE (PRINTING,
g_print ("Cloud Print Backend: (%p) 'printer' REST call for "
"printer id %s", account, printerid));
- GTask *task = g_task_new (G_OBJECT (account),
- cancellable,
- callback,
- user_data);
+ task = g_task_new (G_OBJECT (account), cancellable, callback, user_data);
g_task_set_task_data (task,
g_object_ref (account),