diff options
author | Jerry D. Hedden <jdhedden@cpan.org> | 2016-12-28 11:37:45 -0500 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2016-12-29 10:47:17 -0500 |
commit | 58e76350f3236d53f018cbec0478a1c66fa0aba1 (patch) | |
tree | 1a136f9787cbe2f861b594f8611146b599581eb6 /dist/threads-shared | |
parent | 56d02b8ccd734cf5d90ee929ed273d258ecae7c1 (diff) | |
download | perl-58e76350f3236d53f018cbec0478a1c66fa0aba1.tar.gz |
Silence one warnings generated during 'make' by clang.
See: https://rt.cpan.org/Ticket/Display.html?id=119529
Committer: Update version number in module's POD. Add perldelta entry.
Diffstat (limited to 'dist/threads-shared')
-rw-r--r-- | dist/threads-shared/lib/threads/shared.pm | 4 | ||||
-rw-r--r-- | dist/threads-shared/shared.xs | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/dist/threads-shared/lib/threads/shared.pm b/dist/threads-shared/lib/threads/shared.pm index 9fd55d69cf..1bcf69d5f1 100644 --- a/dist/threads-shared/lib/threads/shared.pm +++ b/dist/threads-shared/lib/threads/shared.pm @@ -7,7 +7,7 @@ use warnings; use Scalar::Util qw(reftype refaddr blessed); -our $VERSION = '1.52'; # Please update the pod, too. +our $VERSION = '1.53'; # Please update the pod, too. my $XS_VERSION = $VERSION; $VERSION = eval $VERSION; @@ -195,7 +195,7 @@ threads::shared - Perl extension for sharing data structures between threads =head1 VERSION -This document describes threads::shared version 1.52 +This document describes threads::shared version 1.53 =head1 SYNOPSIS diff --git a/dist/threads-shared/shared.xs b/dist/threads-shared/shared.xs index a019732af8..2f3dd912d8 100644 --- a/dist/threads-shared/shared.xs +++ b/dist/threads-shared/shared.xs @@ -656,7 +656,15 @@ Perl_sharedsv_cond_timedwait(perl_cond *cond, perl_mutex *mut, double abs) abs -= (NV)ts.tv_sec; ts.tv_nsec = (long)(abs * 1000000000.0); + CLANG_DIAG_IGNORE(-Wthread-safety); + /* warning: calling function 'pthread_cond_timedwait' requires holding mutex 'mut' exclusively [-Wthread-safety-analysis] */ + switch (pthread_cond_timedwait(cond, mut, &ts)) { + +#if defined(__clang__) || defined(__clang) +CLANG_DIAG_RESTORE; +#endif + case 0: got_it = 1; break; case ETIMEDOUT: break; #ifdef OEMVS |