Skip to content

Commit

Permalink
Fix runtime.pl warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
johncbowman committed Feb 9, 2025
1 parent 71b86df commit 8df4826
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions runtime.pl
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,13 @@ sub c_params {
push @header, "}\n\n";
undef $/;
open my $HEADER, "<", $outHeaderFile;
my $orig_header = <$HEADER>;
close $HEADER;
my $orig_header = "";
my $HEADER;
if (-e $outHeaderFile) {
open $HEADER, "<", $outHeaderFile;
$orig_header = <$HEADER>;
close $HEADER;
}
my $new_header = join "", @header;
if ($new_header ne $orig_header) {
Expand Down

0 comments on commit 8df4826

Please sign in to comment.