diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-01-01 20:08:31 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-01-01 20:08:31 +0100 |
commit | 86d86462b420f098ee34a022cffd922e3192dabe (patch) | |
tree | 20770c3ba0d29ef920ada35ca8609a28e4d0294f /source/test/unittests | |
parent | e6451dae35a962fba59a450b2a22d80e64399fe4 (diff) | |
download | kit-86d86462b420f098ee34a022cffd922e3192dabe.zip |
Remove ANSI C option; add pedantic gcc flag
Diffstat (limited to 'source/test/unittests')
-rw-r--r-- | source/test/unittests/async_function.test.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/test/unittests/async_function.test.c b/source/test/unittests/async_function.test.c index 320f323..6ec8825 100644 --- a/source/test/unittests/async_function.test.c +++ b/source/test/unittests/async_function.test.c @@ -142,29 +142,29 @@ TEST("coroutine generator") { TEST("coroutine status finished") { AF_CREATE(promise, test_bar); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(AF_FINISHED(promise)); } TEST("coroutine task") { AF_CREATE(promise, test_task); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(AF_FINISHED(promise)); } TEST("coroutine nested task") { AF_CREATE(promise, test_nest_task); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(AF_FINISHED(promise)); } @@ -174,7 +174,7 @@ TEST("coroutine nested generator") { REQUIRE(AF_RESUME_AND_JOIN(promise) == 2); REQUIRE(AF_RESUME_AND_JOIN(promise) == 3); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(AF_FINISHED(promise)); } @@ -198,7 +198,7 @@ TEST("coroutine custom execution context lazy") { AF_RESUME(promise); REQUIRE(promise.return_value == 0); REQUIRE(!AF_FINISHED(promise)); - AF_JOIN(promise); + (void) AF_JOIN(promise); REQUIRE(promise.return_value == 42); REQUIRE(AF_FINISHED(promise)); } @@ -210,7 +210,7 @@ TEST("coroutine custom execution context immediate") { AF_RESUME(promise); REQUIRE(promise.return_value == 42); REQUIRE(AF_FINISHED(promise)); - AF_JOIN(promise); + (void) AF_JOIN(promise); REQUIRE(promise.return_value == 42); REQUIRE(AF_FINISHED(promise)); } |