mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Report suppressed warnings count
This also triggers if there is one warning, which seems a little weird, but it seems mostly reasonable.
This commit is contained in:
parent
6e8d43a552
commit
ecabf882ac
4 changed files with 17 additions and 8 deletions
|
@ -139,14 +139,14 @@ bool Ascii::OpenFile() {
|
|||
if ( ! file.is_open() ) {
|
||||
FailWarn(fail_on_file_problem, Fmt("Init: cannot open %s", fname.c_str()), true);
|
||||
|
||||
return ! fail_on_file_problem;
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ReadHeader(false) == false ) {
|
||||
FailWarn(fail_on_file_problem, Fmt("Init: cannot open %s; problem reading file header", fname.c_str()), true);
|
||||
|
||||
file.close();
|
||||
return ! fail_on_file_problem;
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! read_location ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue