diff options
author | Leon Timmermans <fawaka@gmail.com> | 2021-03-28 18:13:08 +0200 |
---|---|---|
committer | Leon Timmermans <fawaka@gmail.com> | 2021-08-15 13:40:54 +0200 |
commit | 9fd3e33feaed09d63663007950a909d6fc587451 (patch) | |
tree | 1c6fbc5826ec72136b69559381b99c863dc7d96d | |
parent | a2dfde55580b6eed357b6e2cca478b0e82bf4056 (diff) | |
download | perl-9fd3e33feaed09d63663007950a909d6fc587451.tar.gz |
Enable warnings on «use v5.35»
-rw-r--r-- | op.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8864,6 +8864,9 @@ Perl_utilize(pTHX_ int aver, I32 floor, OP *version, OP *idop, OP *arg) PL_hints |= HINT_STRICT_SUBS; if (!(PL_hints & HINT_EXPLICIT_STRICT_VARS)) PL_hints |= HINT_STRICT_VARS; + + if (vcmp(use_version, sv_2mortal(upg_version(newSVpvs("5.035000"), FALSE))) >= 0) + free_and_set_cop_warnings(&PL_compiling, pWARN_ALL); } /* otherwise they are off */ else { |