mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 21:45:04 +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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
static gboolean
|
static gboolean
|
||||||
fu_efivar_set_immutable_fd (int fd,
|
fu_efivar_set_immutable_fd (int fd,
|
||||||
gboolean value,
|
gboolean value,
|
||||||
gboolean *value_old,
|
gboolean *value_old,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
#ifndef _WIN32
|
|
||||||
guint flags;
|
guint flags;
|
||||||
gboolean is_immutable;
|
gboolean is_immutable;
|
||||||
int rc;
|
int rc;
|
||||||
@ -124,14 +124,8 @@ fu_efivar_set_immutable_fd (int fd,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
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
|
static gboolean
|
||||||
fu_efivar_set_immutable (const gchar *fn,
|
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");
|
g_object_notify (G_OBJECT (self), "device-file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_GUDEV
|
||||||
static const gchar *
|
static const gchar *
|
||||||
fu_udev_device_get_vendor_fallback (GUdevDevice *udev_device)
|
fu_udev_device_get_vendor_fallback (GUdevDevice *udev_device)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_GUDEV
|
|
||||||
const gchar *tmp;
|
const gchar *tmp;
|
||||||
tmp = g_udev_device_get_property (udev_device, "ID_VENDOR_FROM_DATABASE");
|
tmp = g_udev_device_get_property (udev_device, "ID_VENDOR_FROM_DATABASE");
|
||||||
if (tmp != NULL)
|
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");
|
tmp = g_udev_device_get_property (udev_device, "ID_VENDOR");
|
||||||
if (tmp != NULL)
|
if (tmp != NULL)
|
||||||
return tmp;
|
return tmp;
|
||||||
#endif
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GUDEV
|
#ifdef HAVE_GUDEV
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user