From a474326a697281b267b95ea9373b3860c62b499e Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 15 May 2025 23:13:37 +0200 Subject: [PATCH] Silence clang warning spam --- rpcs3/Emu/RSX/VK/VKMemAlloc.cpp | 1 + rpcs3/Emu/RSX/VK/vkutils/memory.h | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/VKMemAlloc.cpp b/rpcs3/Emu/RSX/VK/VKMemAlloc.cpp index 1ac2799ac4..92c59a0773 100644 --- a/rpcs3/Emu/RSX/VK/VKMemAlloc.cpp +++ b/rpcs3/Emu/RSX/VK/VKMemAlloc.cpp @@ -49,6 +49,7 @@ private: #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #ifdef __clang__ #pragma clang diagnostic ignored "-Winconsistent-missing-override" +#pragma clang diagnostic ignored "-Wnullability-completeness" #else #pragma GCC diagnostic ignored "-Wsuggest-attribute=noreturn" #endif diff --git a/rpcs3/Emu/RSX/VK/vkutils/memory.h b/rpcs3/Emu/RSX/VK/vkutils/memory.h index 209b9a49f6..7a8ee99934 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/memory.h +++ b/rpcs3/Emu/RSX/VK/vkutils/memory.h @@ -4,7 +4,14 @@ #include "../../rsx_utils.h" #include "shared.h" +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnullability-completeness" +#endif #include "3rdparty/GPUOpen/VulkanMemoryAllocator/include/vk_mem_alloc.h" +#ifdef __clang__ +#pragma clang diagnostic pop +#endif namespace vk {