diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2002-05-13 12:30:35 +0000 |
---|---|---|
committer | Artur Bergman <sky@nanisky.com> | 2002-05-13 12:30:35 +0000 |
commit | 13c1b20720b7eeca2a0c896ac27f004bc376edb3 (patch) | |
tree | 1bf13394b35bd8031a260b9eeb3ebfe4122a167e /xsutils.c | |
parent | 5dc83c4054cb6624685a80f58caabe5e173a543f (diff) | |
download | perl-13c1b20720b7eeca2a0c896ac27f004bc376edb3.tar.gz |
Re: 'use threads::shared' noisy with -w
Message-Id: <20020510235227.J12298@fdgroup.com>
p4raw-id: //depot/perl@16572
Diffstat (limited to 'xsutils.c')
-rw-r--r-- | xsutils.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -116,6 +116,14 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs) switch ((int)len) { case 6: switch (*name) { + case 's': + if (strEQ(name, "shared")) { + if (negated) + Perl_croak(aTHX_ "A variable may not be unshared"); + SvSHARE(sv); + continue; + } + break; case 'u': if (strEQ(name, "unique")) { if (SvTYPE(sv) == SVt_PVGV) { |