From 7178ab8e41a93d375ebd1258155b6dec64de0d55 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Tue, 19 Sep 2017 00:14:41 +0100 Subject: [PATCH] PlacesSidebar: Avoid unused mem if !CLOUDPROVIDERS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The member GList *cloud_rows is only ever used if HAVE_CLOUDPROVIDERS is defined, so don’t declare it if not. --- gtk/gtkplacessidebar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 9b6a2c72ce..8775b7cc7f 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -125,9 +125,12 @@ struct _GtkPlacesSidebar { GtkWidget *new_bookmark_row; GtkBookmarksManager *bookmarks_manager; + #ifdef HAVE_CLOUDPROVIDERS CloudProviders *cloud_manager; + GList *cloud_rows; #endif + GVolumeMonitor *volume_monitor; GtkTrashMonitor *trash_monitor; GtkSettings *gtk_settings; @@ -157,8 +160,6 @@ struct _GtkPlacesSidebar { DropState drop_state; GtkGesture *long_press_gesture; - GList *cloud_rows; - /* volume mounting - delayed open process */ GtkPlacesOpenFlags go_to_after_mount_open_flags; GCancellable *cancellable;