diff options
author | Richard Jones <rjones@redhat.com> | 2012-03-29 13:33:26 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-29 13:35:48 +0100 |
commit | b9cb387a109f4d09cdef84a62194201e78f97cb7 (patch) | |
tree | 45bf6fc4a88faf8b6a5a2d4d756c9d34711fd7d9 /tests | |
parent | d67da6419ac025db7c48f82054d7153b2c71481d (diff) | |
download | libguestfs-b9cb387a109f4d09cdef84a62194201e78f97cb7.tar.gz libguestfs-b9cb387a109f4d09cdef84a62194201e78f97cb7.tar.xz libguestfs-b9cb387a109f4d09cdef84a62194201e78f97cb7.zip |
test: Thread function is a candidate for attribute noreturn.
The start_test_thread function never returns, it is always
cancelled by the main thread.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/c-api/test-user-cancel.c | 4 |
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 39763bf0..1ae30c3d 100644 --- a/tests/c-api/test-user-cancel.c +++ b/tests/c-api/test-user-cancel.c @@ -54,7 +54,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 { @@ -345,8 +345,6 @@ start_test_thread (void *datav) while (1) pause (); } - - return NULL; } static double random_gauss (double mu, double sd); |