summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2013-03-24 11:47:22 +0100
committerYves Orton <demerphq@gmail.com>2013-03-24 11:50:18 +0100
commitff20b672a2557d27fcb80d597224fa0c24e43f73 (patch)
tree21e5d298852a1c6f926ec5df6af45ca1034f5736 /hv.c
parent3a71429411c9f019441035c9f35ea66b0f169acc (diff)
downloadperl-ff20b672a2557d27fcb80d597224fa0c24e43f73.tar.gz
Add a commented out warning and a way for diag.t to ignore it
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hv.c b/hv.c
index 1a4558fce8..7d69fe432d 100644
--- a/hv.c
+++ b/hv.c
@@ -802,6 +802,15 @@ Perl_hv_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
}
PL_hash_rand_bits= ROTL_UV(PL_hash_rand_bits,1);
if (SvOOK(hv)) {
+ /* Currently this makes various tests warn in annoying ways.
+ * So Silenced for now. - Yves | bogus end of comment =>* /
+ if (HvAUX(hv)->xhv_riter != -1) {
+ Perl_ck_warner_d(aTHX_ packWARN(WARN_INTERNAL),
+ "[TESTING] Inserting into a hash during each() traversal results in undefined behavior"
+ pTHX__FORMAT
+ pTHX__VALUE);
+ }
+ */
HvAUX(hv)->xhv_rand= (U32)PL_hash_rand_bits;
}