mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-08 21:23:19 +00:00
trivial: Fix compile warnings when building packages
This commit is contained in:
parent
4da6751502
commit
6d5f2dc25e
@ -159,7 +159,7 @@ synapticsmst_device_enable_remote_control (SynapticsMSTDevice *device, GError **
|
|||||||
|
|
||||||
/* in test mode we need to open a different file node instead */
|
/* in test mode we need to open a different file node instead */
|
||||||
if (priv->test_mode) {
|
if (priv->test_mode) {
|
||||||
g_autofree gchar *filename;
|
g_autofree gchar *filename = NULL;
|
||||||
close(priv->fd);
|
close(priv->fd);
|
||||||
filename = g_strdup_printf ("%s/remote/%s",
|
filename = g_strdup_printf ("%s/remote/%s",
|
||||||
priv->fw_dir,
|
priv->fw_dir,
|
||||||
@ -204,7 +204,7 @@ synapticsmst_device_disable_remote_control (SynapticsMSTDevice *device, GError *
|
|||||||
|
|
||||||
/* in test mode we need to open a different file node instead */
|
/* in test mode we need to open a different file node instead */
|
||||||
if (priv->test_mode) {
|
if (priv->test_mode) {
|
||||||
g_autofree gchar *filename;
|
g_autofree gchar *filename = NULL;
|
||||||
close(priv->fd);
|
close(priv->fd);
|
||||||
filename = g_strdup_printf ("%s/%s",
|
filename = g_strdup_printf ("%s/%s",
|
||||||
priv->fw_dir,
|
priv->fw_dir,
|
||||||
@ -296,7 +296,7 @@ synapticsmst_device_read_board_id (SynapticsMSTDevice *device,
|
|||||||
guint8 rc;
|
guint8 rc;
|
||||||
|
|
||||||
if (priv->test_mode) {
|
if (priv->test_mode) {
|
||||||
g_autofree gchar *filename;
|
g_autofree gchar *filename = NULL;
|
||||||
gint fd;
|
gint fd;
|
||||||
filename = g_strdup_printf ("%s/remote/%s_eeprom",
|
filename = g_strdup_printf ("%s/remote/%s_eeprom",
|
||||||
priv->fw_dir,
|
priv->fw_dir,
|
||||||
@ -755,7 +755,7 @@ gboolean
|
|||||||
synapticsmst_device_open (SynapticsMSTDevice *device, GError **error)
|
synapticsmst_device_open (SynapticsMSTDevice *device, GError **error)
|
||||||
{
|
{
|
||||||
SynapticsMSTDevicePrivate *priv = GET_PRIVATE (device);
|
SynapticsMSTDevicePrivate *priv = GET_PRIVATE (device);
|
||||||
g_autofree gchar *filename;
|
g_autofree gchar *filename = NULL;
|
||||||
guint8 byte[4];
|
guint8 byte[4];
|
||||||
g_autoptr(SynapticsMSTConnection) connection = NULL;
|
g_autoptr(SynapticsMSTConnection) connection = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user