From a9a2369c60a461133c90836744d19285f7172775 Mon Sep 17 00:00:00 2001 From: kaloyanpenev Date: Sat, 18 Apr 2026 16:43:36 +0100 Subject: [PATCH] Use [[maybe_unused]] on unused allocator parameter to suppress -Wunused-parameter warning --- include/dro/spsc-queue.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dro/spsc-queue.hpp b/include/dro/spsc-queue.hpp index a099e52..1d16aed 100644 --- a/include/dro/spsc-queue.hpp +++ b/include/dro/spsc-queue.hpp @@ -96,7 +96,7 @@ struct StackBuffer { std::array buffer_; explicit StackBuffer(const std::size_t capacity, - const Allocator &allocator = Allocator()) { + [[maybe_unused]] const Allocator &allocator = Allocator()) { if (capacity) { throw std::invalid_argument( "Capacity in constructor is ignored for stack allocations");