From 69ecaf77254aff83883c69974f818e7b2c1c69b9 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Tue, 13 May 2025 20:14:39 +0200 Subject: [PATCH] Fix Windows issue --- openVulkanoCpp/Math/RunningAverage.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openVulkanoCpp/Math/RunningAverage.hpp b/openVulkanoCpp/Math/RunningAverage.hpp index f15919a..fc4bd76 100644 --- a/openVulkanoCpp/Math/RunningAverage.hpp +++ b/openVulkanoCpp/Math/RunningAverage.hpp @@ -32,7 +32,12 @@ namespace OpenVulkano::Math RingBuffer m_buffer; T m_value; - [[no_unique_address]] std::conditional_t m_operations; + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-attributes" + [[no_unique_address]] [[msvc::no_unique_address]] + std::conditional_t m_operations; +#pragma clang diagnostic pop public: RunningAverage(size_t size) requires (std::is_default_constructible_v && SIZE == RING_BUFFER_DYNAMIC)