Skip to content

Commit

Permalink
Supress redefined warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
choroba committed Jun 26, 2024
1 parent 48948d2 commit 285aa72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tred_refactored/tredlib/TrEd/Macros.pm
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,8 @@ sub initialize_macros {
my $utf = ($useEncoding) ? "use utf8;\n" : q{};
my $macros = q{};
$macros .= 'use strict;' if $strict;
$macros .= "use warnings; no warnings 'redefine';" if $warnings;
$macros .= 'use warnings;' if $warnings;
$macros .= 'no warnings "redefine";';
$macros
.= "{\n"
. $utf
Expand Down

0 comments on commit 285aa72

Please sign in to comment.