mirror of
https://github.com/boostorg/detail.git
synced 2025-08-04 14:54:26 +02:00
Silenced warnings about unused variables.
This commit is contained in:
@@ -196,6 +196,7 @@ void test_loop(Sequence& x, Compare cmp, unsigned long test_count)
|
|||||||
std::size_t index = 0;
|
std::size_t index = 0;
|
||||||
std::size_t count = 0;
|
std::size_t count = 0;
|
||||||
unsigned last_value = 0;
|
unsigned last_value = 0;
|
||||||
|
(void)last_value;
|
||||||
for (const_iterator p = start; p != finish; ++p)
|
for (const_iterator p = start; p != finish; ++p)
|
||||||
{
|
{
|
||||||
if (p == l)
|
if (p == l)
|
||||||
@@ -233,6 +234,7 @@ void test_loop(Sequence& x, Compare cmp, unsigned long test_count)
|
|||||||
assert(range.second == u);
|
assert(range.second == u);
|
||||||
|
|
||||||
bool found = searches<Compare>::binary_search(start, finish, key, cmp);
|
bool found = searches<Compare>::binary_search(start, finish, key, cmp);
|
||||||
|
(void)found;
|
||||||
assert(found == (u != l));
|
assert(found == (u != l));
|
||||||
std::cout << "found " << count << " copies of " << key << " at index " << index << "\n";
|
std::cout << "found " << count << " copies of " << key << " at index " << index << "\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user