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");