diff options
author | zhuyaliang <[email protected]> | 2023-04-22 12:56:21 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-04-28 00:38:32 +0200 |
commit | 6148063f860bf23d970199fd74a9efdf547be834 (patch) | |
tree | b5756324ac8fae1b79ba402d4d887989e6314c8b /plugins/ibm-acpi | |
parent | 68740373619824398f0c16c39ca12ed8ac1e275c (diff) | |
download | mate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.bz2 mate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.xz |
Fix Compilation Warning
Diffstat (limited to 'plugins/ibm-acpi')
-rw-r--r-- | plugins/ibm-acpi/ibm-acpi-plugin.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |