OpenBSD: eliminates some compiler warnings

This commit is contained in:
Carter Li
2026-10-06 09:34:49 +08:00
parent fb89af3d84
commit 4909ac0d52
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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";
+1 -1
View File
@@ -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");