From 54cc273a0a4421b25b40eb25449de5d3a601534b Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Sun, 21 Aug 2022 15:56:39 +0400 Subject: Remove noexcept --- source/test/unittests/thread.test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/test') diff --git a/source/test/unittests/thread.test.c b/source/test/unittests/thread.test.c index a797fee..786e992 100644 --- a/source/test/unittests/thread.test.c +++ b/source/test/unittests/thread.test.c @@ -3,7 +3,9 @@ #define KIT_TEST_FILE thread #include "../../kit_test/test.h" -static int test_nothing(void *_) { } +static int test_nothing(void *_) { + return 0; +} static int test_run(void *data) { int *n = (int *) data; @@ -21,11 +23,13 @@ static int test_exit(void *data) { static int test_yield(void *data) { thrd_yield(); + return 0; } static int test_sleep(void *data) { struct timespec t = { .tv_sec = 0, .tv_nsec = 10000000 }; thrd_sleep(&t, NULL); + return 0; } TEST("thread run") { -- cgit v1.2.3