Subject: | shared.xs: warning generated when compiling with clang |
Jerry,
I have set up VMs which I use mainly for smoke-testing Perl 5 blead on FreeBSD versions 10.3 and 11. When I do a smoke test run on FreeBSD 11, the compiler is Clang 3.8.0. In this build I get a number of compiler warnings, one of which is from threads-shared:
#####
shared.xs:659:13: warning: calling function 'pthread_cond_timedwait' requires holding mutex 'mut' exclusively [-Wthread-safety-analysis]
#####
See, e.g., http://perl5.test-smoke.org/report/52709
More complete version of the warning:
#####
Making header files for XS...
shared.xs:659:13: warning: calling function 'pthread_cond_timedwait' requires holding mutex 'mut' exclusively [-Wthread-safety-analysis]
switch (pthread_cond_timedwait(cond, mut, &ts)) {
^
1 warning generated.
#####
threads-shared has $VERSION 1.52.
Do you think this can be cleared up?
Thank you very much.
Jim Keenan