diff --git a/src/video/khronos/vulkan/vulkan_metal.h b/src/video/khronos/vulkan/vulkan_metal.h index 0e41ec5385e95..4cb9c69798fae 100644 --- a/src/video/khronos/vulkan/vulkan_metal.h +++ b/src/video/khronos/vulkan/vulkan_metal.h @@ -88,8 +88,11 @@ typedef void* MTLTexture_id; typedef struct __IOSurface* IOSurfaceRef; #ifdef __OBJC__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunguarded-availability" @protocol MTLSharedEvent; typedef __unsafe_unretained id MTLSharedEvent_id; +#pragma clang diagnostic pop #else typedef void* MTLSharedEvent_id; #endif