mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-31 10:32:19 +00:00
This is a deliberate fallthrough.
This commit is contained in:
parent
1fbb733f7f
commit
68645742f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user