[Spice-devel,2/2] usb-device-manager: mingw: win driver install callback: add missing ifdef

Submitted by Uri Lublin on July 10, 2012, 4:27 p.m.

Details

Message ID 1341937679-21174-2-git-send-email-uril@redhat.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Uri Lublin July 10, 2012, 4:27 p.m.
This fixes the following compilation error message (without USE_USBREDIR):

usb-device-manager.c:183:13: error: 'spice_usb_device_manager_drv_install_cb' declared 'static' but never defined [-Werror=unused-function]
---
 gtk/usb-device-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/gtk/usb-device-manager.c b/gtk/usb-device-manager.c
index 58dde67..9dab4c6 100644
--- a/gtk/usb-device-manager.c
+++ b/gtk/usb-device-manager.c
@@ -179,11 +179,13 @@  G_DEFINE_BOXED_TYPE(SpiceUsbDevice, spice_usb_device, g_object_ref, g_object_unr

 static void spice_usb_device_manager_initable_iface_init(GInitableIface *iface);

+#ifdef USE_USBREDIR
 #ifdef G_OS_WIN32
 static void spice_usb_device_manager_drv_install_cb(GObject *gobject,
                                                     GAsyncResult *res,
                                                     gpointer user_data);
 #endif
+#endif

 static guint signals[LAST_SIGNAL] = { 0, };


Comments

ack

----- Mensaje original -----
> This fixes the following compilation error message (without
> USE_USBREDIR):
> 
> usb-device-manager.c:183:13: error:
> 'spice_usb_device_manager_drv_install_cb' declared 'static' but
> never defined [-Werror=unused-function]
> ---
>  gtk/usb-device-manager.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/gtk/usb-device-manager.c b/gtk/usb-device-manager.c
> index 58dde67..9dab4c6 100644
> --- a/gtk/usb-device-manager.c
> +++ b/gtk/usb-device-manager.c
> @@ -179,11 +179,13 @@ G_DEFINE_BOXED_TYPE(SpiceUsbDevice,
> spice_usb_device, g_object_ref, g_object_unr
> 
>  static void
>  spice_usb_device_manager_initable_iface_init(GInitableIface
>  *iface);
> 
> +#ifdef USE_USBREDIR
>  #ifdef G_OS_WIN32
>  static void spice_usb_device_manager_drv_install_cb(GObject
>  *gobject,
>                                                      GAsyncResult
>                                                      *res,
>                                                      gpointer
>                                                      user_data);
>  #endif
> +#endif
> 
>  static guint signals[LAST_SIGNAL] = { 0, };
> 
> --
> 1.7.7.6
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>