From 95a44d3a33df10de6459a6ca02231152a5927ee4 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Tue, 18 Feb 2025 19:49:19 +0800 Subject: [PATCH] GPU (Haiku): silence warnings --- src/detection/gpu/gpu_haiku.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/gpu/gpu_haiku.c b/src/detection/gpu/gpu_haiku.c index c1324f761..16b40c860 100644 --- a/src/detection/gpu/gpu_haiku.c +++ b/src/detection/gpu/gpu_haiku.c @@ -14,7 +14,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist* .info = &dev, }; - for (cmd.index = 0; ioctl(pokefd, POKE_GET_NTH_PCI_INFO, &cmd) == B_OK && cmd.status == B_OK; ++cmd.index) + for (cmd.index = 0; ioctl(pokefd, POKE_GET_NTH_PCI_INFO, &cmd, sizeof(cmd)) == B_OK && cmd.status == B_OK; ++cmd.index) { if (dev.class_base != 0x03 /*PCI_BASE_CLASS_DISPLAY*/) continue;