diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2015-11-18 21:18:37 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2015-11-23 06:55:12 -0500 |
commit | 78d35ce204926ecd797db064ca69e45a82b8f6ca (patch) | |
tree | e5192e9e1b82c125546c95dd37c94c63d5bc0405 /dist/threads | |
parent | 337458b10d074d4e2412b2adcdd789a0ed6c8349 (diff) | |
download | perl-78d35ce204926ecd797db064ca69e45a82b8f6ca.tar.gz |
analysis does not like mutex being either held or released
threads.xs:1020:1: warning: mutex 'thread->mutex' is not held on every path through here [-Wthread-safety-analysis]
}
^
Diffstat (limited to 'dist/threads')
-rw-r--r-- | dist/threads/threads.xs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/threads/threads.xs b/dist/threads/threads.xs index 73f704b154..9333a346c0 100644 --- a/dist/threads/threads.xs +++ b/dist/threads/threads.xs @@ -1017,7 +1017,10 @@ S_ithread_create( my_pool->running_threads++; MUTEX_UNLOCK(&my_pool->create_destruct_mutex); return (thread); +CLANG_DIAG_IGNORE(-Wthread-safety); +/* warning: mutex 'thread->mutex' is not held on every path through here [-Wthread-safety-analysis] */ } +CLANG_DIAG_RESTORE; #endif /* USE_ITHREADS */ |