Skip to content

Commit e9be37c

Browse files
committed
silence warning from latest EU:PXS by using barf_if_error on retval
1 parent ac7e9f1 commit e9be37c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/PDL/PP.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ EOD
17281728
unless $only_one || $argorder || ($nmaxonstack == keys(%valid_itemcounts) + $xs_arg_cnt);
17291729
my $preamble = @preinit ? qq[\n PREINIT:@{[join "\n ", "", @preinit]}\n INPUT:\n] : '';
17301730
join '', qq[
1731-
\nNO_OUTPUT pdl_error
1731+
\nvoid
17321732
pdl_run_$name(@{[join ', ', @xsargs]})$svdecls
17331733
$preamble@{[join "\n ", "", @inputdecls]}
17341734
PPCODE:
@@ -1797,7 +1797,7 @@ EOF
17971797
my @counts = map "PDL_Indx ${_}_count=0;", grep $optypes->{$_}->is_array, @{ $sig->othernames(1, 1) };
17981798
my $longpars = join "\n", map " $_", @counts, $sig->alldecls(1, 0, 1);
17991799
return<<END;
1800-
\nNO_OUTPUT pdl_error
1800+
\nvoid
18011801
$name($shortpars)
18021802
$longpars
18031803
END
@@ -1816,7 +1816,7 @@ END
18161816
my ($func_name,$sig) = @_;
18171817
my $shortpars = join ',', map $sig->other_is_output($_)?"&$_":$_, @{ $sig->allnames(0) };
18181818
my $longpars = join ",", $sig->alldecls(0, 1);
1819-
(indent(2,"RETVAL = $func_name($shortpars);\nPDL->barf_if_error(RETVAL);\n"),
1819+
(indent(2,"PDL->barf_if_error($func_name($shortpars));\n"),
18201820
"pdl_error $func_name($longpars)");
18211821
}),
18221822

0 commit comments

Comments
 (0)