diff options
author | Cosimo Cecchi <cosimo@endlessm.com> | 2018-11-01 10:51:20 -0700 |
---|---|---|
committer | Cosimo Cecchi <cosimo@endlessm.com> | 2018-11-05 08:19:57 -0800 |
commit | 8c5164342e6f6e10041d2217298dc145ab5a11a9 (patch) | |
tree | 586c02ff95712ffa2a05a23cdf2cafeb8c80b67f | |
parent | 4a56b32e2a0409ea6e3331dac42d4030b52fc75b (diff) | |
download | gnome-initial-setup-8c5164342e6f6e10041d2217298dc145ab5a11a9.tar.gz |
software: avoid a GCC warning
When building without this option, we'll get a compiler warning
because a function is unused.
-rw-r--r-- | gnome-initial-setup/pages/software/gis-software-page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnome-initial-setup/pages/software/gis-software-page.c b/gnome-initial-setup/pages/software/gis-software-page.c index f3e827a..3098ce6 100644 --- a/gnome-initial-setup/pages/software/gis-software-page.c +++ b/gnome-initial-setup/pages/software/gis-software-page.c @@ -88,12 +88,12 @@ gis_software_page_dispose (GObject *object) G_OBJECT_CLASS (gis_software_page_parent_class)->dispose (object); } +#ifdef ENABLE_SOFTWARE_SOURCES static void repo_enabled_cb (GObject *source, GAsyncResult *res, gpointer data) { -#ifdef ENABLE_SOFTWARE_SOURCES GisSoftwarePage *page = GIS_SOFTWARE_PAGE (data); GisSoftwarePagePrivate *priv = gis_software_page_get_instance_private (page); g_autoptr(GError) error = NULL; @@ -118,8 +118,8 @@ repo_enabled_cb (GObject *source, /* all done */ gis_page_apply_complete (GIS_PAGE (page), TRUE); } -#endif } +#endif gboolean enable_repos (GisSoftwarePage *page, |