Code

Merge branch 'collectd-4.5' into collectd-4.6
[collectd.git] / src / battery.c
index d142982df4c7926a08bee11bf778a405d8253c19..272193ee507b742d78ac30de98cfe7466b697f45 100644 (file)
@@ -314,8 +314,8 @@ static void get_via_generic_iokit (double *ret_charge,
 #endif /* HAVE_IOKIT_IOKITLIB_H */
 
 #if KERNEL_LINUX
-static int battery_read_acpi (const char *dir, const char *name,
-               void *user_data)
+static int battery_read_acpi (const char __attribute__((unused)) *dir,
+               const char *name, void __attribute__((unused)) *user_data)
 {
        double  current = INVALID_VALUE;
        double  voltage = INVALID_VALUE;