We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ed804d commit d1f2082Copy full SHA for d1f2082
1 file changed
src/detection/gpu/gpu_apple.m
@@ -60,10 +60,13 @@
60
else if ([device supportsFeatureSet:MTLFeatureSet_macOS_GPUFamily1_v1])
61
ffStrbufSetStatic(&gpu->platformApi, "Metal Feature Set 1");
62
#else // MAC_OS_X_VERSION_10_15
63
+ #pragma clang diagnostic push
64
+ #pragma clang diagnostic ignored "-Wunguarded-availability-new"
65
if ([device supportsFamily:MTLGPUFamilyMetal4])
66
ffStrbufSetStatic(&gpu->platformApi, "Metal 4");
67
else if ([device supportsFamily:MTLGPUFamilyMetal3])
68
ffStrbufSetStatic(&gpu->platformApi, "Metal 3");
69
+ #pragma clang diagnostic pop
70
else if ([device supportsFamily:MTLGPUFamilyCommon3])
71
ffStrbufSetStatic(&gpu->platformApi, "Metal Common 3");
72
else if ([device supportsFamily:MTLGPUFamilyCommon2])
0 commit comments