Skip to content

Commit d1f2082

Browse files
committed
GPU (macOS): silence compiler warnings
1 parent 1ed804d commit d1f2082

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/detection/gpu/gpu_apple.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,13 @@
6060
else if ([device supportsFeatureSet:MTLFeatureSet_macOS_GPUFamily1_v1])
6161
ffStrbufSetStatic(&gpu->platformApi, "Metal Feature Set 1");
6262
#else // MAC_OS_X_VERSION_10_15
63+
#pragma clang diagnostic push
64+
#pragma clang diagnostic ignored "-Wunguarded-availability-new"
6365
if ([device supportsFamily:MTLGPUFamilyMetal4])
6466
ffStrbufSetStatic(&gpu->platformApi, "Metal 4");
6567
else if ([device supportsFamily:MTLGPUFamilyMetal3])
6668
ffStrbufSetStatic(&gpu->platformApi, "Metal 3");
69+
#pragma clang diagnostic pop
6770
else if ([device supportsFamily:MTLGPUFamilyCommon3])
6871
ffStrbufSetStatic(&gpu->platformApi, "Metal Common 3");
6972
else if ([device supportsFamily:MTLGPUFamilyCommon2])

0 commit comments

Comments
 (0)