Browse Source

Supress Metal warning when compiling against macOS 10.11-10.13

M. P. Halpin 9 months ago
parent
commit
24bdbb8bf4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/video/khronos/vulkan/vulkan_metal.h

+ 3 - 0
src/video/khronos/vulkan/vulkan_metal.h

@@ -88,8 +88,11 @@ typedef void* MTLTexture_id;
 
 
 typedef struct __IOSurface* IOSurfaceRef;
 typedef struct __IOSurface* IOSurfaceRef;
 #ifdef __OBJC__
 #ifdef __OBJC__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunguarded-availability"
 @protocol MTLSharedEvent;
 @protocol MTLSharedEvent;
 typedef __unsafe_unretained id<MTLSharedEvent> MTLSharedEvent_id;
 typedef __unsafe_unretained id<MTLSharedEvent> MTLSharedEvent_id;
+#pragma clang diagnostic pop
 #else
 #else
 typedef void* MTLSharedEvent_id;
 typedef void* MTLSharedEvent_id;
 #endif
 #endif