mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
Fixed warning in tests
This commit is contained in:
parent
7d3b5a1b10
commit
9448d74495
@ -26,7 +26,8 @@ TEST_CASE("test_rolling", "[circular_q]")
|
|||||||
|
|
||||||
for (size_t i = 0; i < q_size + 2; i++)
|
for (size_t i = 0; i < q_size + 2; i++)
|
||||||
{
|
{
|
||||||
q.push_back(std::move(i)); // arg to push_back must be r value
|
auto val = i;
|
||||||
|
q.push_back(std::move(val)); // arg to push_back must be r value
|
||||||
}
|
}
|
||||||
|
|
||||||
REQUIRE(q.size() == q_size);
|
REQUIRE(q.size() == q_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user