aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/scan-build/ccc-analyzer5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer
index 29166708af..8c64d3ffef 100755
--- a/tools/scan-build/ccc-analyzer
+++ b/tools/scan-build/ccc-analyzer
@@ -597,9 +597,12 @@ if ($Action eq 'compile' or $Action eq 'link') {
}
}
+ # FileLang still not defined? Skip the file.
next if (!defined $FileLang);
+
+ # Language not accepted?
next if (!defined $LangsAccepted{$FileLang});
-
+
my @CmdArgs;
my @AnalyzeArgs;