]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Remove argument $cc_regex of is_non_verbose_build().
authorSimon Ruderich <simon@ruderich.org>
Sat, 17 Mar 2012 15:10:42 +0000 (16:10 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 17 Mar 2012 15:10:42 +0000 (16:10 +0100)
The global definition is now used.

bin/blhc

index 993b3e751114109cd10b8f7f51b5063de4f4bf06..d53c7d7b849a01b62610263e851dde695f26dd41 100755 (executable)
--- 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;