From 3d97b792943778e7347f694c7b5dbe919f1cfe54 Mon Sep 17 00:00:00 2001 From: Lewis Baker Date: Thu, 24 Aug 2017 22:47:30 +0930 Subject: [PATCH] Silence some Clang warnings about unused return values in tests. --- test/async_mutex_tests.cpp | 2 +- test/task_tests.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/async_mutex_tests.cpp b/test/async_mutex_tests.cpp index 42c7c7f..14f1193 100644 --- a/test/async_mutex_tests.cpp +++ b/test/async_mutex_tests.cpp @@ -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( diff --git a/test/task_tests.cpp b/test/task_tests.cpp index 15153fb..dc1a17e 100644 --- a/test/task_tests.cpp +++ b/test/task_tests.cpp @@ -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;