This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
D:P: parts/inc/misc: Silence Wide char warnings
authorKarl Williamson <khw@cpan.org>
Thu, 21 Nov 2019 20:35:59 +0000 (13:35 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 22 Nov 2019 13:49:04 +0000 (06:49 -0700)
dist/Devel-PPPort/parts/inc/misc
dist/Devel-PPPort/t/misc.t

index 8e695f3..5705a5f 100644 (file)
@@ -2798,6 +2798,7 @@ for $i (sort { $a <=> $b } keys %code_points_to_test) {
             else {
                 $utf8 = quotemeta Devel::PPPort::uvoffuni_to_utf8($i);
                 my $should_be = $types{"$native:$class"} || 0;
+                local $SIG{__WARN__} = sub {};
                 my $eval_string = "$fcn(\"$utf8\", 0)";
                 my $is = eval $eval_string || 0;
                 die "eval 'For $i, $eval_string' gave $@" if $@;
index ee25147..3f868c0 100644 (file)
@@ -326,6 +326,7 @@ for $i (sort { $a <=> $b } keys %code_points_to_test) {
             else {
                 $utf8 = quotemeta Devel::PPPort::uvoffuni_to_utf8($i);
                 my $should_be = $types{"$native:$class"} || 0;
+                local $SIG{__WARN__} = sub {};
                 my $eval_string = "$fcn(\"$utf8\", 0)";
                 my $is = eval $eval_string || 0;
                 die "eval 'For $i, $eval_string' gave $@" if $@;