[gnome-online-accounts: 8/8] daemon: Silence -Wshadow



commit 8c8a295efb91ef0283ff01c016471f3570516d6d
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Nov 1 15:14:24 2017 +0100

    daemon: Silence -Wshadow
    
    This was made possible by diff_sorted_lists supporting optional 'out'
    parameters.

 src/daemon/goadaemon.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index bea1ab8..0b6ddef 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -927,7 +927,6 @@ process_template_entries (GoaDaemon  *self,
   GList *config_object_groups = NULL;
   GList *config_template_groups = NULL;
   GList *added;
-  GList *removed;
   GList *unchanged;
   GList *l;
 
@@ -954,7 +953,7 @@ process_template_entries (GoaDaemon  *self,
                      config_template_groups,
                      (GCompareFunc) compare_account_and_template_groups,
                      &added,
-                     &removed,
+                     NULL,
                      &unchanged);
 
   for (l = added; l != NULL; l = l->next)
@@ -1077,7 +1076,6 @@ process_template_entries (GoaDaemon  *self,
 
   g_hash_table_unref (key_files_to_update);
   g_key_file_unref (home_conf_key_file);
-  g_list_free (removed);
   g_list_free (added);
   g_list_free (unchanged);
   g_list_free_full (config_object_groups, g_free);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]