[recipes] Fix the build with clang



commit a1e51c47eb8b9047f9f98eddc04af2b1f5cec266
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Dec 29 12:33:22 2016 -0500

    Fix the build with clang
    
    It complained about a bunch of unused variables that gcc
    does not notice. Get rid of all of them.

 src/gr-details-page.c     |    1 -
 src/gr-edit-page.c        |   10 ----------
 src/gr-ingredients-page.c |    1 -
 src/gr-preferences.c      |    1 -
 src/gr-recipe-exporter.c  |    1 -
 src/gr-recipe-printer.c   |    2 --
 src/gr-recipe-tile.c      |    1 -
 7 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/gr-details-page.c b/src/gr-details-page.c
index b791d3b..53d4410 100644
--- a/src/gr-details-page.c
+++ b/src/gr-details-page.c
@@ -770,7 +770,6 @@ gr_details_page_set_recipe (GrDetailsPage *page,
         const char *instructions;
         const char *notes;
         const char *description;
-        g_autoptr(GdkPixbuf) pixbuf = NULL;
         GrRecipeStore *store;
         g_autoptr(GrChef) chef = NULL;
         g_autoptr(GrIngredientsList) ing = NULL;
diff --git a/src/gr-edit-page.c b/src/gr-edit-page.c
index 38608b9..05a09b1 100644
--- a/src/gr-edit-page.c
+++ b/src/gr-edit-page.c
@@ -461,11 +461,6 @@ format_unit_for_display (const char *amount,
                          char **amount_out,
                          char **unit_out)
 {
-        g_autoptr(GrIngredientsList) ingredients = NULL;
-        g_autofree char *line = NULL;
-        g_autofree char *parsed = NULL;
-        g_auto(GStrv) strv = NULL;
-
         if (amount[0] != '\0') {
                 GrNumber number;
                 char *a = (char *)amount;
@@ -496,7 +491,6 @@ add_ingredient2 (GtkButton *button, GrEditPage *page)
         const char *ingredient;
         g_autofree char *amount = NULL;
         g_autofree  char *unit = NULL;
-        g_autofree char *s = NULL;
         GtkWidget *list;
         GtkWidget *b;
         GtkWidget *row;
@@ -1304,8 +1298,6 @@ gr_edit_page_edit (GrEditPage *page,
         const char *description;
         const char *instructions;
         const char *ingredients;
-        g_autofree char *image_path = NULL;
-        g_autoptr(GdkPixbuf) pixbuf = NULL;
         GrDiets diets;
         g_autoptr(GArray) images = NULL;
         g_autoptr(GrChef) chef = NULL;
@@ -1385,11 +1377,9 @@ account_response (GDBusConnection *connection,
         g_variant_get (parameters, "(u@a{sv})", &response, &options);
 
         if (response == 0) {
-                g_autoptr(GdkPixbuf) pixbuf = NULL;
                 const char *id;
                 const char *name;
                 const char *uri;
-                g_autofree char *path = NULL;
                 GrRecipeStore *store;
 
                 store = gr_app_get_recipe_store (GR_APP (g_application_get_default ()));
diff --git a/src/gr-ingredients-page.c b/src/gr-ingredients-page.c
index 9675d67..dafc0b3 100644
--- a/src/gr-ingredients-page.c
+++ b/src/gr-ingredients-page.c
@@ -130,7 +130,6 @@ populate_initially (GrIngredientsPage *self)
         alphabet = g_utf8_to_ucs4_fast (_("ABCDEFGHIJKLMNOPQRSTUVWXYZ"), -1, &length);
 
         for (i = 0; i < length; i++) {
-                g_autofree char *letter = NULL;
                 GtkWidget *item, *label, *box;
                 Category *category;
                 char buf[6];
diff --git a/src/gr-preferences.c b/src/gr-preferences.c
index 2b487e1..d601105 100644
--- a/src/gr-preferences.c
+++ b/src/gr-preferences.c
@@ -78,7 +78,6 @@ file_chooser_response (GtkNativeDialog *self,
                        GrPreferences   *prefs)
 {
         if (response_id == GTK_RESPONSE_ACCEPT) {
-                g_autoptr(GdkPixbuf) pixbuf = NULL;
                 g_free (prefs->image_path);
                 prefs->image_path = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (self));
                 update_image (prefs);
diff --git a/src/gr-recipe-exporter.c b/src/gr-recipe-exporter.c
index f584ced..57cfde7 100644
--- a/src/gr-recipe-exporter.c
+++ b/src/gr-recipe-exporter.c
@@ -331,7 +331,6 @@ gr_recipe_exporter_export_to (GrRecipeExporter *exporter,
                               GrRecipe         *recipe,
                               GFile            *file)
 {
-        g_autoptr(GFile) output = NULL;
         g_autoptr(GError) error = NULL;
 
         g_set_object (&exporter->recipe, recipe);
diff --git a/src/gr-recipe-printer.c b/src/gr-recipe-printer.c
index 0c9ac12..2b668b5 100644
--- a/src/gr-recipe-printer.c
+++ b/src/gr-recipe-printer.c
@@ -279,8 +279,6 @@ draw_page (GtkPrintOperation *operation,
         PangoRectangle logical_rect;
         int baseline;
         int width;
-        g_autoptr(GArray) images = NULL;
-        g_autoptr(GdkPixbuf) pixbuf = NULL;
         int start, end, i;
         PangoLayoutIter *iter;
         double start_pos;
diff --git a/src/gr-recipe-tile.c b/src/gr-recipe-tile.c
index a91cd79..aff9737 100644
--- a/src/gr-recipe-tile.c
+++ b/src/gr-recipe-tile.c
@@ -59,7 +59,6 @@ recipe_tile_set_recipe (GrRecipeTile *tile,
 {
         const char *name;
         const char *author;
-        g_autofree char *image_path = NULL;
         g_autofree char *tmp = NULL;
         g_autoptr(GArray) images = NULL;
         const char *color;


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