From e88c8bbdecca94824ea1e347a9678f2b545ce804 Mon Sep 17 00:00:00 2001 From: Daniel Frey Date: Tue, 5 Nov 2024 01:36:21 +0100 Subject: [PATCH] Avoid clang warning --- include/tao/pq/internal/resize_uninitialized.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tao/pq/internal/resize_uninitialized.hpp b/include/tao/pq/internal/resize_uninitialized.hpp index 20dbe2f..d428231 100644 --- a/include/tao/pq/internal/resize_uninitialized.hpp +++ b/include/tao/pq/internal/resize_uninitialized.hpp @@ -110,7 +110,7 @@ namespace tao::pq::internal static_assert( sizeof( std::vector< std::byte > ) == sizeof( std::vector< no_init_byte > ) ); static_assert( alignof( std::vector< std::byte > ) == alignof( std::vector< no_init_byte > ) ); - void resize_uninitialized_proxy( std::vector< std::byte >& v, const std::size_t n ) noexcept + [[maybe_unused]] void resize_uninitialized_proxy( std::vector< std::byte >& v, const std::size_t n ) noexcept { // undefined behaviour? reinterpret_cast< std::vector< no_init_byte >& >( v ).resize( n );