From 92caddb5012bc50feec79f6609ce29fdbca0f4d6 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Tue, 25 Sep 2018 14:10:03 +0800 Subject: [PATCH] pthread: fix a type mismatch warning --- components/pthread/test/test_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/pthread/test/test_pthread.c b/components/pthread/test/test_pthread.c index e2de1358fd..543fbf5858 100644 --- a/components/pthread/test/test_pthread.c +++ b/components/pthread/test/test_pthread.c @@ -22,7 +22,7 @@ TEST_CASE("pthread create join", "[pthread]") volatile int num = 7; volatile bool attr_init = false; void *thread_rval = NULL; - pthread_t new_thread = NULL; + pthread_t new_thread = (pthread_t)NULL; pthread_attr_t attr; if (TEST_PROTECT()) {