From 165c0278bb1db96722e193740dcff409b43df93d Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sat, 27 Nov 2021 18:16:26 +0000 Subject: [PATCH] trivial: Fix a warning when compiling without USB support --- libfwupdplugin/fu-usb-device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfwupdplugin/fu-usb-device.h b/libfwupdplugin/fu-usb-device.h index 19e1c935e..d7316fb00 100644 --- a/libfwupdplugin/fu-usb-device.h +++ b/libfwupdplugin/fu-usb-device.h @@ -10,9 +10,9 @@ #ifdef HAVE_GUSB #include #else +#define GUsbContext GObject +#define GUsbDevice GObject #ifndef __GI_SCANNER__ -typedef GObject GUsbContext; -typedef GObject GUsbDevice; #define G_USB_CHECK_VERSION(a, c, b) 0 #endif #endif