[gtk+/gtk-3-22] PlacesSidebar: Avoid warning about unused variable



commit d1d8658898b815ebef1631b05d07d255356c4602
Author: Daniel Boles <dboles src gnome org>
Date:   Sun Aug 27 15:32:44 2017 +0100

    PlacesSidebar: Avoid warning about unused variable
    
    end_icon is only used if HAVE_CLOUDPROVIDERS is defined, so only declare
    it under the same condition.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786123

 gtk/gtkplacessidebar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index d684f67..014c278 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -992,12 +992,12 @@ update_places (GtkPlacesSidebar *sidebar)
   GtkListBoxRow *selected;
   gchar *home_uri;
   GIcon *start_icon;
-  GIcon *end_icon;
   GFile *root;
   gchar *tooltip;
   GList *network_mounts, *network_volumes;
   GIcon *new_bookmark_icon;
 #ifdef HAVE_CLOUDPROVIDERS
+  GIcon *end_icon;
   GList *cloud_provider_proxies;
   guint provider_status;
 #endif


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