diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-08-03 11:50:27 -0400 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-08-08 21:18:45 -0400 |
commit | aaa8fdea527d635e6503a1411a06938325cba216 (patch) | |
tree | 59cc67b3e315c0470b8ef644d6736c492ae3dac8 /src | |
parent | 2de2ec25d6e8971809f98ebe36996c00e0f89f2d (diff) |
vfs: Add unreachable assert to file permissions converter
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/vfs_real.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp index 2923a8e6a3..21ea35aaf5 100644 --- a/src/core/file_sys/vfs_real.cpp +++ b/src/core/file_sys/vfs_real.cpp @@ -6,7 +6,7 @@ #include <cstddef> #include <iterator> #include <utility> - +#include "common/assert.h" #include "common/common_paths.h" #include "common/logging/log.h" #include "core/file_sys/vfs_real.h" @@ -29,6 +29,8 @@ static std::string ModeFlagsToString(Mode mode) { mode_str = "a"; else if (mode & Mode::Write) mode_str = "w"; + else + UNREACHABLE_MSG("Invalid file open mode: {:02X}", static_cast<u8>(mode)); } mode_str += "b"; |