From 934905e63aedb6ec1f527c320f1d977b0b3a8b35 Mon Sep 17 00:00:00 2001 From: apocelipes Date: Sun, 16 Nov 2025 05:06:32 +0800 Subject: [PATCH] GPU: silence unused parameter warnings --- src/detection/gpu/gpu_drm.c | 2 +- src/detection/gpu/gpu_linux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/gpu/gpu_drm.c b/src/detection/gpu/gpu_drm.c index aee70ca4a..9304e6f16 100644 --- a/src/detection/gpu/gpu_drm.c +++ b/src/detection/gpu/gpu_drm.c @@ -153,7 +153,7 @@ const char* ffDrmDetectAmdgpu(const FFGPUOptions* options, FFGPUResult* gpu, con return NULL; #else - FF_UNUSED(gpu, renderPath); + FF_UNUSED(options, gpu, renderPath); return "Fastfetch is compiled without libdrm support"; #endif } diff --git a/src/detection/gpu/gpu_linux.c b/src/detection/gpu/gpu_linux.c index 6fad45f4c..fb28f7449 100644 --- a/src/detection/gpu/gpu_linux.c +++ b/src/detection/gpu/gpu_linux.c @@ -120,7 +120,7 @@ static const char* drmDetectAmdSpecific(const FFGPUOptions* options, FFGPUResult #endif } #else - FF_UNUSED(gpu, drmKey, buffer); + FF_UNUSED(options, gpu, drmKey, buffer); return "Fastfetch is not compiled with drm support"; #endif }