diff --git a/src/common/memmap.cpp b/src/common/memmap.cpp index 013af87af..375be6d76 100644 --- a/src/common/memmap.cpp +++ b/src/common/memmap.cpp @@ -447,6 +447,11 @@ void MemMap::UnmapSharedMemory(void* baseaddr, size_t size) const void* MemMap::GetBaseAddress() { +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + u32 name_buffer_size = 0; _NSGetExecutablePath(nullptr, &name_buffer_size); if (name_buffer_size > 0) [[likely]] @@ -471,6 +476,10 @@ const void* MemMap::GetBaseAddress() } return reinterpret_cast(&GetBaseAddress); + +#ifdef __clang__ +#pragma clang diagnostic pop +#endif } void* MemMap::AllocateJITMemoryAt(const void* addr, size_t size) diff --git a/src/util/opengl_context_agl.h b/src/util/opengl_context_agl.h index c0083a3e0..76eda201b 100644 --- a/src/util/opengl_context_agl.h +++ b/src/util/opengl_context_agl.h @@ -6,6 +6,11 @@ #include "opengl_context.h" #include "opengl_loader.h" +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #if defined(__APPLE__) && defined(__OBJC__) #import #else @@ -47,3 +52,7 @@ private: NSOpenGLPixelFormat* m_pixel_format = nullptr; void* m_opengl_module_handle = nullptr; }; + +#ifdef __clang__ +#pragma clang diagnostic pop +#endif diff --git a/src/util/opengl_context_agl.mm b/src/util/opengl_context_agl.mm index 0f0a5c32a..e65239cfc 100644 --- a/src/util/opengl_context_agl.mm +++ b/src/util/opengl_context_agl.mm @@ -9,6 +9,10 @@ #include +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + LOG_CHANNEL(GPUDevice); OpenGLContextAGL::OpenGLContextAGL() : OpenGLContext()