diff --git a/src/battery.c b/src/battery.c
index d142982df4c7926a08bee11bf778a405d8253c19..272193ee507b742d78ac30de98cfe7466b697f45 100644 (file)
--- a/src/battery.c
+++ b/src/battery.c
#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;