From 71c06413940f08ce1e12340ab24f7e79f86cb15e Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sun, 10 Jul 2022 11:15:16 +0100 Subject: [PATCH] trivial: Fix a -Wunused-function warning on Windows --- libfwupdplugin/fu-udev-device.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libfwupdplugin/fu-udev-device.c b/libfwupdplugin/fu-udev-device.c index c8daf65e3..abae7b771 100644 --- a/libfwupdplugin/fu-udev-device.c +++ b/libfwupdplugin/fu-udev-device.c @@ -86,10 +86,10 @@ fu_udev_device_emit_changed(FuUdevDevice *self) g_signal_emit(self, signals[SIGNAL_CHANGED], 0); } +#ifdef HAVE_GUDEV static guint16 fu_udev_device_get_sysfs_attr_as_uint16(GUdevDevice *udev_device, const gchar *name) { -#ifdef HAVE_GUDEV const gchar *tmp; guint64 tmp64 = 0; g_autoptr(GError) error_local = NULL; @@ -102,15 +102,11 @@ fu_udev_device_get_sysfs_attr_as_uint16(GUdevDevice *udev_device, const gchar *n return 0x0; } return tmp64; -#else - return 0x0; -#endif } static guint8 fu_udev_device_get_sysfs_attr_as_uint8(GUdevDevice *udev_device, const gchar *name) { -#ifdef HAVE_GUDEV const gchar *tmp; guint64 tmp64 = 0; g_autoptr(GError) error_local = NULL; @@ -126,12 +122,8 @@ fu_udev_device_get_sysfs_attr_as_uint8(GUdevDevice *udev_device, const gchar *na return 0x0; } return tmp64; -#else - return 0x0; -#endif } -#ifdef HAVE_GUDEV static void fu_udev_device_to_string_raw(GUdevDevice *udev_device, guint idt, GString *str) {