Silence some Clang warnings about unused return values in tests.

This commit is contained in:
Lewis Baker 2017-08-24 22:47:30 +09:30
parent 8a632c72a9
commit 3d97b79294
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ TEST_CASE("multiple lockers")
// We'lll now queue up another one before releasing any more waiters
// to test the code-path that looks at the newly queued waiter list
// when the cache of waiters is exhausted.
co_await cppcoro::when_all_ready(f(d), check2());
(void)co_await cppcoro::when_all_ready(f(d), check2());
};
cppcoro::sync_wait(cppcoro::when_all_ready(

View file

@ -65,7 +65,7 @@ TEST_CASE("awaiting task that completes asynchronously")
CHECK(!reachedBeforeEvent);
co_await cppcoro::when_all_ready(
(void)co_await cppcoro::when_all_ready(
[&]() -> cppcoro::task<>
{
co_await t;