From: Simon Ruderich Date: Sat, 17 Mar 2012 15:10:42 +0000 (+0100) Subject: Remove argument $cc_regex of is_non_verbose_build(). X-Git-Tag: 0.01~102 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=992cc016c9d07fab61701a75a0957dcfda83c77d Remove argument $cc_regex of is_non_verbose_build(). The global definition is now used. --- diff --git a/bin/blhc b/bin/blhc index 993b3e7..d53c7d7 100755 --- a/bin/blhc +++ b/bin/blhc @@ -157,7 +157,7 @@ sub pic_pie_conflict { } sub is_non_verbose_build { - my ($line, $next_line, $cc_regex, $skip_ref) = @_; + my ($line, $next_line, $skip_ref) = @_; if (not ($line =~ /^checking if you want to see long compiling messages\.\.\. no/ or $line =~ /^\s*(?:CC|CCLD)\s+(.+?)$/ @@ -324,7 +324,7 @@ for (my $i = 0; $i < scalar @input; $i++) { my $line = $input[$i]; my $skip = 0; - if (is_non_verbose_build($line, $input[$i + 1], $cc_regex, \$skip)) { + if (is_non_verbose_build($line, $input[$i + 1], \$skip)) { error_non_verbose_build($line); $exit |= 1 << 2; next;