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:
Evan Typanski 2024-09-27 13:20:17 -04:00
parent 6e8d43a552
commit ecabf882ac
4 changed files with 17 additions and 8 deletions

View file

@ -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 ) {