[recipes] Fix another unused variable warning from clang



commit ab468481a7a5452d7053aa5c7f9ffb7f62f3c6aa
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Dec 29 13:26:53 2016 -0500

    Fix another unused variable warning from clang

 src/gr-recipe-exporter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-recipe-exporter.c b/src/gr-recipe-exporter.c
index de8a5e0..5d36430 100644
--- a/src/gr-recipe-exporter.c
+++ b/src/gr-recipe-exporter.c
@@ -96,9 +96,9 @@ gr_recipe_exporter_new (GtkWindow *parent)
 static void
 cleanup_export (GrRecipeExporter *exporter)
 {
+#ifdef ENABLE_AUTOAR
         g_autoptr(GError) error = NULL;
 
-#ifdef ENABLE_AUTOAR
         if (!glnx_shutil_rm_rf_at (-1, exporter->dir, NULL, &error))
                 g_warning ("Failed to clean up temp directory %s: %s", exporter->dir, error->message);
 


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