From 6148063f860bf23d970199fd74a9efdf547be834 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Sat, 22 Apr 2023 12:56:21 +0800 Subject: Fix Compilation Warning --- plugins/ibm-acpi/ibm-acpi-plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/ibm-acpi/ibm-acpi-plugin.c') diff --git a/plugins/ibm-acpi/ibm-acpi-plugin.c b/plugins/ibm-acpi/ibm-acpi-plugin.c index 9bf3615..285ff86 100644 --- a/plugins/ibm-acpi/ibm-acpi-plugin.c +++ b/plugins/ibm-acpi/ibm-acpi-plugin.c @@ -129,6 +129,7 @@ static void ibm_acpi_plugin_setup_manually(GList **sensors) { } /* to be called externally to setup for ibm_acpi sensors */ +static GList *ibm_acpi_plugin_init(void) { GList *sensors = NULL; @@ -137,6 +138,7 @@ GList *ibm_acpi_plugin_init(void) { return sensors; } +static gdouble ibm_acpi_plugin_get_sensor_value(const gchar *path, const gchar *id, SensorType type, @@ -144,7 +146,7 @@ gdouble ibm_acpi_plugin_get_sensor_value(const gchar *path, /* to open and access the value of each sensor */ FILE *fp; - gint sensor_value; + gint sensor_value = 0; gint cpu_temp, minipci_temp, hdd_temp, gpu_temp, bat0_temp, bat1_temp, unknown0, unknown1; gint fan_speed; -- cgit v1.2.1