From 4909ac0d5277057f6d6c1133ecd28997b25d760e Mon Sep 17 00:00:00 2001 From: Carter Li Date: Tue, 6 Oct 2026 09:34:49 +0800 Subject: [PATCH] OpenBSD: eliminates some compiler warnings --- src/detection/gpu/gpu_drm.c | 2 ++ src/detection/sound/sound_obsd.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/detection/gpu/gpu_drm.c b/src/detection/gpu/gpu_drm.c index 77f31799e..15d31a31a 100644 --- a/src/detection/gpu/gpu_drm.c +++ b/src/detection/gpu/gpu_drm.c @@ -394,6 +394,8 @@ const char* ffGPUDetectDriverSpecific(const FFGPUOptions* options, FFGPUResult* }, soName); } +#else + FF_UNUSED(options, gpu, pciBusId); #endif return "No driver-specific detection function found for the GPU vendor"; diff --git a/src/detection/sound/sound_obsd.c b/src/detection/sound/sound_obsd.c index 4dccec835..b0f309208 100644 --- a/src/detection/sound/sound_obsd.c +++ b/src/detection/sound/sound_obsd.c @@ -57,7 +57,7 @@ static void enumerate_props(FFSoundDeviceBundle* bundle, struct sioctl_desc* des } } -const char* ffDetectSound(FFSoundOptions* options, FFlist* devices) { +const char* ffDetectSound([[maybe_unused]] FFSoundOptions* options, FFlist* devices) { [[gnu::cleanup(close_hdl)]] struct sioctl_hdl* hdl = sioctl_open(SIO_DEVANY, SIOCTL_READ, 0); if (!hdl) { FF_DEBUG("sio_open() failed");