diff options
author | Yves Orton <demerphq@gmail.com> | 2013-03-24 11:47:22 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2013-03-24 11:50:18 +0100 |
commit | ff20b672a2557d27fcb80d597224fa0c24e43f73 (patch) | |
tree | 21e5d298852a1c6f926ec5df6af45ca1034f5736 /hv.c | |
parent | 3a71429411c9f019441035c9f35ea66b0f169acc (diff) | |
download | perl-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; } |