[gnome-initial-setup: 2/3] software: avoid GCC warnings for unused variables



commit 2f7b1b2d6483a57102ce756c51a17784baaa0562
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Nov 5 20:09:17 2018 -0800

    software: avoid GCC warnings for unused variables
    
    When we're built without software sources, these variables end up unused.

 gnome-initial-setup/pages/software/gis-software-page.c | 5 +++--
 1 file changed, 3 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 3098ce6..0f63fd6 100644
--- a/gnome-initial-setup/pages/software/gis-software-page.c
+++ b/gnome-initial-setup/pages/software/gis-software-page.c
@@ -247,11 +247,12 @@ gis_software_page_init (GisSoftwarePage *page)
 GisPage *
 gis_prepare_software_page (GisDriver *driver)
 {
-  GSettingsSchemaSource *source;
-  GSettingsSchema *schema;
   GisPage *page = NULL;
 
 #ifdef ENABLE_SOFTWARE_SOURCES
+  GSettingsSchemaSource *source;
+  GSettingsSchema *schema;
+
   source = g_settings_schema_source_get_default ();
   schema = g_settings_schema_source_lookup (source, "org.gnome.software", TRUE);
   if (schema != NULL && g_settings_schema_has_key (schema, "show-nonfree-software"))


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