[gnome-initial-setup: 1/3] software: avoid a GCC warning
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup: 1/3] software: avoid a GCC warning
- Date: Mon, 12 Nov 2018 11:46:09 +0000 (UTC)
commit 8c5164342e6f6e10041d2217298dc145ab5a11a9
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Thu Nov 1 10:51:20 2018 -0700
software: avoid a GCC warning
When building without this option, we'll get a compiler warning
because a function is unused.
gnome-initial-setup/pages/software/gis-software-page.c | 4 ++--
1 file 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]