From 8c4276806a964854004809c93fc068620993c055 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 13 Aug 2013 21:00:14 +0200 Subject: [PATCH] apply --ignore-errors on dependency search as well --- rcb.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rcb.pl b/rcb.pl index 2f0b785..0c4caea 100755 --- a/rcb.pl +++ b/rcb.pl @@ -95,6 +95,8 @@ sub printc { printf $colstr, $colors->{"end"}; } +my $ignore_errors = 0; + sub scandep_doit { my ($self, $na) = @_; my $is_header = ($na =~ /\.h$/); @@ -114,7 +116,7 @@ sub scandep_doit { last unless $is_header; } printc("red", "failed to find dependency $na referenced from $self!\n"); - die unless $is_header; + die unless $is_header || $ignore_errors; } sub make_relative { @@ -177,7 +179,6 @@ my $verbose = 0; my $step = 0; my $ignore_rcb = 0; my $mainfile = undef; -my $ignore_errors = 0; my $debug_cflags = 0; sub scanfile { -- 2.11.4.GIT