Blame SOURCES/0024-Don-t-define-function-without-oVirt-integration.patch

48c875
From 48b0a9949e88782388ce73f0c1292c1367aa7e6c Mon Sep 17 00:00:00 2001
48c875
From: Victor Toso <me@victortoso.com>
48c875
Date: Fri, 3 Mar 2017 15:37:02 +0100
48c875
Subject: [PATCH 24/26] Don't define function without oVirt integration
48c875
48c875
Function is not used without oVirt.
48c875
48c875
> virt-viewer-window.c:1063:1: warning: 'iso_dialog_response' defined
48c875
> but not used [-Wunused-function]
48c875
48c875
Signed-off-by: Victor Toso <victortoso@redhat.com>
48c875
---
48c875
 src/virt-viewer-window.c | 2 ++
48c875
 1 file changed, 2 insertions(+)
48c875
48c875
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
48c875
index 2e41edc..867a7b0 100644
48c875
--- a/src/virt-viewer-window.c
48c875
+++ b/src/virt-viewer-window.c
48c875
@@ -1059,6 +1059,7 @@ virt_viewer_window_menu_help_about(GtkWidget *menu G_GNUC_UNUSED,
48c875
     g_object_unref(G_OBJECT(about));
48c875
 }
48c875
 
48c875
+#if HAVE_OVIRT
48c875
 static void
48c875
 iso_dialog_response(GtkDialog *dialog,
48c875
                     gint response_id,
48c875
@@ -1069,6 +1070,7 @@ iso_dialog_response(GtkDialog *dialog,
48c875
 
48c875
     gtk_widget_destroy(GTK_WIDGET(dialog));
48c875
 }
48c875
+#endif
48c875
 
48c875
 void
48c875
 virt_viewer_window_menu_change_cd_activate(GtkWidget *menu G_GNUC_UNUSED,
48c875
-- 
48c875
2.12.0
48c875