igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/4] tests/sw_sync: fix pthread start_routine declaration
@ 2018-06-06 22:27 Lucas De Marchi
  2018-06-06 22:27 ` [igt-dev] [PATCH i-g-t 2/4] build: bump c std to gnu11 Lucas De Marchi
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Lucas De Marchi @ 2018-06-06 22:27 UTC (permalink / raw)
  To: igt-dev

pthread_create() expects a void *(*start_routine) (void *). Fix warning
the following warning on gcc 8:

../tests/sw_sync.c:773:37: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void * (*)(void *)’ [-Wcast-function-type]
   pthread_create(&threads[i], NULL, (void * (*)(void *))
                                     ^
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
 tests/sw_sync.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index 20dfbbb9..afe58b0c 100644
--- a/tests/sw_sync.c
+++ b/tests/sw_sync.c
@@ -669,7 +669,7 @@ static struct {
 	pthread_mutex_t lock;
 } test_mpsc_data;
 
-static int mpsc_producer_thread(void *d)
+static void *mpsc_producer_thread(void *d)
 {
 	int id = (long)d;
 	int fence, i;
@@ -702,7 +702,7 @@ static int mpsc_producer_thread(void *d)
 		close(fence);
 	}
 
-	return 0;
+	return NULL;
 }
 
 static int mpsc_consumer_thread(void)
-- 
2.17.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-07-12  0:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-06 22:27 [igt-dev] [PATCH i-g-t 1/4] tests/sw_sync: fix pthread start_routine declaration Lucas De Marchi
2018-06-06 22:27 ` [igt-dev] [PATCH i-g-t 2/4] build: bump c std to gnu11 Lucas De Marchi
2018-06-06 22:27 ` [igt-dev] [PATCH i-g-t 3/4] lib/igt_core: fix check for running under gdb Lucas De Marchi
2018-07-11 21:25   ` [igt-dev] [PATCH i-g-t v2 " Lucas De Marchi
2018-06-06 22:27 ` [igt-dev] [PATCH i-g-t 4/4] lib/igt_kms: simplify pipe <-> name conversion Lucas De Marchi
2018-06-06 23:36 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] tests/sw_sync: fix pthread start_routine declaration Patchwork
2018-06-07  1:19 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-06-19  6:46 ` [igt-dev] [PATCH i-g-t 1/4] " Lucas De Marchi
2018-06-19  7:37   ` Petri Latvala
2018-06-19 20:30     ` Lucas De Marchi
2018-06-20  9:57       ` Petri Latvala
2018-07-05 20:15         ` Lucas De Marchi
2018-07-11 23:21 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] tests/sw_sync: fix pthread start_routine declaration (rev2) Patchwork
2018-07-12  0:14 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).