Host: silence compiler warnings

This commit is contained in:
李通洲 committed 2024-12-10 09:35:52 +08:00
1 parent 2700390371
commit e45ff546ed
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -14,5 +14,7 @@ typedef struct FFHostResult
} FFHostResult;
const char* ffHostGetMacProductNameWithHwModel(const FFstrbuf* hwModel);
#ifdef __x86_64__
bool ffHostDetectMac(FFHostResult* host);
#endif
const char* ffDetectHost(FFHostResult* host);
+2 -2
View File
@@ -174,9 +174,9 @@ const char* ffHostGetMacProductNameWithHwModel(const FFstrbuf* hwModel)
return NULL;
}
#ifdef __x86_64__
bool ffHostDetectMac(FFHostResult* host)
{
#ifdef __x86_64__
if (ffStrbufEqualS(&host->family, "Mac") && ffStrbufEqualS(&host->vendor, "Apple Inc."))
{
const char* productName = ffHostGetMacProductNameWithHwModel(&host->name);
@@ -188,6 +188,6 @@ bool ffHostDetectMac(FFHostResult* host)
return true;
}
}
#endif
return false;
}
#endif