From fc0bf00f951666665af2d87856cc17b346708432 Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Fri, 20 Dec 2024 14:29:35 +0300 Subject: [PATCH] Workaround -Wunused-parameter --- include/boost/heap/detail/heap_comparison.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/heap/detail/heap_comparison.hpp b/include/boost/heap/detail/heap_comparison.hpp index a082d0a..4fbe9aa 100644 --- a/include/boost/heap/detail/heap_comparison.hpp +++ b/include/boost/heap/detail/heap_comparison.hpp @@ -26,6 +26,7 @@ namespace boost { namespace heap { namespace detail { template < typename Heap1, typename Heap2 > bool value_equality( Heap1 const& lhs, Heap2 const& rhs, typename Heap1::value_type lval, typename Heap2::value_type rval ) { + (void)rhs; typename Heap1::value_compare const& cmp = lhs.value_comp(); bool ret = !( cmp( lval, rval ) ) && !( cmp( rval, lval ) ); @@ -38,6 +39,7 @@ bool value_equality( Heap1 const& lhs, Heap2 const& rhs, typename Heap1::value_t template < typename Heap1, typename Heap2 > bool value_compare( Heap1 const& lhs, Heap2 const& rhs, typename Heap1::value_type lval, typename Heap2::value_type rval ) { + (void)rhs; typename Heap1::value_compare const& cmp = lhs.value_comp(); bool ret = cmp( lval, rval );