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 @@ VMA_CALL_PRE void VMA_CALL_POST vmaDestroyImage( #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 #include #include @@ -18629,4 +18635,9 @@ VMA_CALL_PRE void VMA_CALL_POST vmaDestroyImage( } } +#ifdef __clang__ + // -Wnullability-completeness + #pragma clang diagnostic pop +#endif + #endif // #ifdef VMA_IMPLEMENTATION