[virt-tools-list] [virt-viewer v1 2/2] Don't define functiont without oVirt integration

Pavel Grunt pgrunt at redhat.com
Mon Mar 6 08:41:48 UTC 2017


Ack

On Fri, 2017-03-03 at 15:37 +0100, Victor Toso wrote:
> 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,




More information about the virt-tools-list mailing list