summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/c-api/test-user-cancel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/c-api/test-user-cancel.c b/tests/c-api/test-user-cancel.c
index 4908f953..25faf619 100644
--- a/tests/c-api/test-user-cancel.c
+++ b/tests/c-api/test-user-cancel.c
@@ -50,7 +50,7 @@ static const char *filename = "test.img";
static const off_t filesize = 1024*1024*1024;
static void remove_test_img (void);
-static void *start_test_thread (void *);
+static void *start_test_thread (void *) __attribute__((noreturn));
static off_t random_cancel_posn (void);
struct test_thread_data {
@@ -327,8 +327,6 @@ start_test_thread (void *datav)
while (1)
pause ();
}
-
- return NULL;
}
static double random_gauss (double mu, double sd);
OSZAR »