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/libsensors | |
parent | 68740373619824398f0c16c39ca12ed8ac1e275c (diff) | |
download | mate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.bz2 mate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.xz |
Fix Compilation Warning
Diffstat (limited to 'plugins/libsensors')
-rw-r--r-- | plugins/libsensors/libsensors-plugin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/libsensors/libsensors-plugin.c b/plugins/libsensors/libsensors-plugin.c index b95b888..ebe8b02 100644 --- a/plugins/libsensors/libsensors-plugin.c +++ b/plugins/libsensors/libsensors-plugin.c @@ -230,11 +230,11 @@ static void check_sensor_with_data(GList **sensors, static GList *libsensors_plugin_get_sensors(void) { const sensors_chip_name *chip_name; - int i; GList *sensors = NULL; #if SENSORS_API_VERSION < 0x400 FILE *file; + int i; g_debug("%s: using libsensors version < 4", __FUNCTION__); /* try to open config file, otherwise try alternate config @@ -281,7 +281,6 @@ static GList *libsensors_plugin_get_sensors(void) { return sensors; } - i = 0; while ((chip_name = sensors_get_detected_chips(NULL, &nr))) { char *chip_name_string, *label; |