Chore: silience some warnings

This commit is contained in:
李通洲
2024-05-03 10:07:16 +08:00
parent c4a876f6aa
commit 903ecf37f7
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ FF_MAYBE_UNUSED static const char* detectAsahi(FFlist* gpus, FFstrbuf* buffer, F
{
uint32_t index = ffStrbufFirstIndexS(buffer, "apple,agx-t");
if (index == buffer->length) return "display-subsystem?";
index += strlen("apple,agx-t");
index += (uint32_t) strlen("apple,agx-t");
FFGPUResult* gpu = (FFGPUResult*)ffListAdd(gpus);
gpu->deviceId = strtoul(buffer->chars + index, NULL, 10);