From 499e6c85a07183ef4a4299427c54b42e8e37225e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 7 Nov 2023 09:59:00 +0800 Subject: [PATCH] Battery (Windows): slilence compiler warnings --- src/detection/battery/battery_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/battery/battery_windows.c b/src/detection/battery/battery_windows.c index 7fa8d0820..283ccc135 100644 --- a/src/detection/battery/battery_windows.c +++ b/src/detection/battery/battery_windows.c @@ -140,7 +140,7 @@ static const char* detectWithSetupApi(FFBatteryOptions* options, FFlist* results return NULL; } -static const char* detectWithNtApi(FFBatteryOptions* options, FFlist* results) +static const char* detectWithNtApi(FF_MAYBE_UNUSED FFBatteryOptions* options, FFlist* results) { SYSTEM_BATTERY_STATE info; if (NT_SUCCESS(NtPowerInformation(SystemBatteryState, NULL, 0, &info, sizeof(info))) && info.BatteryPresent)