[virt-tools-list] [virt-viewer v1 2/2] Don't define functiont without oVirt integration
Victor Toso
victortoso at redhat.com
Fri Mar 3 14:37:02 UTC 2017
From: Victor Toso <me at victortoso.com>
Function is not used without oVirt.
> virt-viewer-window.c:1063:1: warning: 'iso_dialog_response' defined
> but not used [-Wunused-function]
Signed-off-by: Victor Toso <victortoso at redhat.com>
---
src/virt-viewer-window.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 9a0932a..3f5a271 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -1059,6 +1059,7 @@ virt_viewer_window_menu_help_about(GtkWidget *menu G_GNUC_UNUSED,
g_object_unref(G_OBJECT(about));
}
+#if HAVE_OVIRT
static void
iso_dialog_response(GtkDialog *dialog,
gint response_id,
@@ -1069,6 +1070,7 @@ iso_dialog_response(GtkDialog *dialog,
gtk_widget_destroy(GTK_WIDGET(dialog));
}
+#endif
void
virt_viewer_window_menu_change_cd_activate(GtkWidget *menu G_GNUC_UNUSED,
--
2.9.3
More information about the virt-tools-list
mailing list