Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion op.c
Original file line number Diff line number Diff line change
Expand Up @@ -7907,8 +7907,10 @@ Perl_utilize(pTHX_ int aver, I32 floor, OP *version, OP *idop, OP *arg)
if (!(PL_hints & HINT_EXPLICIT_STRICT_VARS))
PL_hints |= HINT_STRICT_VARS;

if (shortver >= SHORTVER(5, 35))
if (shortver >= SHORTVER(5, 35)) {
free_and_set_cop_warnings(&PL_compiling, pWARN_ALL);
PL_dowarn |= G_WARN_ONCE;
}
}
/* otherwise they are off */
else {
Expand Down
7 changes: 7 additions & 0 deletions t/lib/warnings/gv
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,10 @@ if ($ㄒ) {
EXPECT
Name "팣칵ぇ::ʎ" used only once: possible typo at - line 11.
Use of uninitialized value $팣칵ぇ::ʎ in print at - line 11.
########
# https://github.com/Perl/perl5/issues/21271
use v5.36;
no strict;
my $x = $i;
EXPECT
Name "main::i" used only once: possible typo at - line 4.