diff --git a/components/pthread/test/test_pthread.c b/components/pthread/test/test_pthread.c index e2de1358f..543fbf585 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()) {