1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-09 17:29:36 +00:00

This is a deliberate fallthrough.

This commit is contained in:
Thomas Harte 2020-06-20 00:12:08 -04:00
parent 1fbb733f7f
commit 68645742f7

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;