]> granicus.if.org Git - esp-idf/commitdiff
pthread: fix a type mismatch warning
authorAnton Maklakov <anton@espressif.com>
Tue, 25 Sep 2018 06:10:03 +0000 (14:10 +0800)
committerAnton Maklakov <anton@espressif.com>
Sun, 21 Oct 2018 07:11:45 +0000 (15:11 +0800)
components/pthread/test/test_pthread.c

index e2de1358fd4800e15f6dcad5d7861aa6c56cedae..543fbf5858637914d6fad530c4fdd239ce933080 100644 (file)
@@ -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()) {