mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 00:38:35 +00:00
trivial: Fix two warnings in the win32 build
This commit is contained in:
parent
da17ff4888
commit
6b5926ca59
@ -69,13 +69,13 @@ fu_efivar_supported (GError **error)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
static gboolean
|
||||
fu_efivar_set_immutable_fd (int fd,
|
||||
gboolean value,
|
||||
gboolean *value_old,
|
||||
GError **error)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
guint flags;
|
||||
gboolean is_immutable;
|
||||
int rc;
|
||||
@ -124,14 +124,8 @@ fu_efivar_set_immutable_fd (int fd,
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
#else
|
||||
g_set_error_literal (error,
|
||||
FWUPD_ERROR,
|
||||
FWUPD_ERROR_NOT_SUPPORTED,
|
||||
"efivarfs not currently supported on Windows");
|
||||
return FALSE;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static gboolean
|
||||
fu_efivar_set_immutable (const gchar *fn,
|
||||
|
@ -195,10 +195,10 @@ fu_udev_device_set_device_file (FuUdevDevice *self, const gchar *device_file)
|
||||
g_object_notify (G_OBJECT (self), "device-file");
|
||||
}
|
||||
|
||||
#ifdef HAVE_GUDEV
|
||||
static const gchar *
|
||||
fu_udev_device_get_vendor_fallback (GUdevDevice *udev_device)
|
||||
{
|
||||
#ifdef HAVE_GUDEV
|
||||
const gchar *tmp;
|
||||
tmp = g_udev_device_get_property (udev_device, "ID_VENDOR_FROM_DATABASE");
|
||||
if (tmp != NULL)
|
||||
@ -206,9 +206,9 @@ fu_udev_device_get_vendor_fallback (GUdevDevice *udev_device)
|
||||
tmp = g_udev_device_get_property (udev_device, "ID_VENDOR");
|
||||
if (tmp != NULL)
|
||||
return tmp;
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GUDEV
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user