mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 07:44:06 +01:00
OpenBSD: eliminates some compiler warnings
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user