Skip to content

Commit e45ff54

Browse files
committed
Host: silence compiler warnings
1 parent 2700390 commit e45ff54

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/detection/host/host.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ typedef struct FFHostResult
1414
} FFHostResult;
1515

1616
const char* ffHostGetMacProductNameWithHwModel(const FFstrbuf* hwModel);
17+
#ifdef __x86_64__
1718
bool ffHostDetectMac(FFHostResult* host);
19+
#endif
1820
const char* ffDetectHost(FFHostResult* host);

src/detection/host/host_mac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ const char* ffHostGetMacProductNameWithHwModel(const FFstrbuf* hwModel)
174174
return NULL;
175175
}
176176

177+
#ifdef __x86_64__
177178
bool ffHostDetectMac(FFHostResult* host)
178179
{
179-
#ifdef __x86_64__
180180
if (ffStrbufEqualS(&host->family, "Mac") && ffStrbufEqualS(&host->vendor, "Apple Inc."))
181181
{
182182
const char* productName = ffHostGetMacProductNameWithHwModel(&host->name);
@@ -188,6 +188,6 @@ bool ffHostDetectMac(FFHostResult* host)
188188
return true;
189189
}
190190
}
191-
#endif
192191
return false;
193192
}
193+
#endif

0 commit comments

Comments
 (0)