Index: bin/scan-build =================================================================== --- bin/scan-build +++ bin/scan-build @@ -1849,6 +1849,10 @@ DieDiag("'c++-analyzer' does not exist at '$CmdCXX'\n") if(! -e $CmdCXX); } +if ($Options{ExitStatusFoundBugs} == 1 && !($Options{OutputFormat} =~ /html/)) { + DieDiag("--status-bugs is only supported with the HTML output format\n"); +} + Diag("Using '$Clang' for static analysis\n"); SetHtmlEnv(\@ARGV, $Options{OutputDir});