From 24bdbb8bf401ce99cc488e1eecf659774dad7b60 Mon Sep 17 00:00:00 2001 From: "M. P. Halpin" Date: Tue, 29 Oct 2024 22:26:15 -0400 Subject: [PATCH] Supress Metal warning when compiling against macOS 10.11-10.13 --- src/video/khronos/vulkan/vulkan_metal.h | 3 +++ 1 file changed, 3 insertions(+) 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