Disable -Wnullability-completeness for the implementation
diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 63f223c..b09d718 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h
@@ -3778,6 +3778,12 @@ #ifdef VMA_IMPLEMENTATION #undef VMA_IMPLEMENTATION +// Only the public API has nullability annotations, not the implementation +#ifdef __clang__ + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wnullability-completeness" +#endif + #include <cstdint> #include <cstdlib> #include <cstring> @@ -18629,4 +18635,9 @@ } } +#ifdef __clang__ + // -Wnullability-completeness + #pragma clang diagnostic pop +#endif + #endif // #ifdef VMA_IMPLEMENTATION