This is a deliberate fallthrough.

This commit is contained in:
Thomas Harte 2020-06-20 00:12:08 -04:00
parent 1fbb733f7f
commit 68645742f7
1 changed files with 1 additions and 1 deletions

View File

@ -27,8 +27,8 @@ FileHolder::FileHolder(const std::string &file_name, FileMode ideal_mode)
file_ = std::fopen(file_name.c_str(), "rb+");
if(file_) break;
is_read_only_ = true;
[[fallthrough]];
// deliberate fallthrough...
case FileMode::Read:
file_ = std::fopen(file_name.c_str(), "rb");
break;