[Spice-devel] [PATCH 2/2] usb-device-manager: mingw: win driver install callback: add missing ifdef
Uri Lublin
uril at redhat.com
Tue Jul 10 09:27:59 PDT 2012
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
More information about the Spice-devel
mailing list