diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-02-01 02:29:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 02:29:36 -0500 |
commit | 7432343214ae5c5b5e2937b601487d81d597c1a4 (patch) | |
tree | 69a8e106636e984a1330fce5aa1a74421cbf4851 | |
parent | 26a9dc3f65824d9d3b1a8da17f204edb083c9b99 (diff) | |
parent | 8f32bab4c98c6842840c7818a0c08d8de4b5d5cb (diff) |
Merge pull request #7825 from lioncash/nodisc2
common/file: Remove [[nodiscard]] from Open()
-rw-r--r-- | src/common/fs/file.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 2c4ab4332..a4f7944cd 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h @@ -188,9 +188,8 @@ public: #ifdef _WIN32 template <typename Path> - [[nodiscard]] void Open(const Path& path, FileAccessMode mode, - FileType type = FileType::BinaryFile, - FileShareFlag flag = FileShareFlag::ShareReadOnly) { + void Open(const Path& path, FileAccessMode mode, FileType type = FileType::BinaryFile, + FileShareFlag flag = FileShareFlag::ShareReadOnly) { using ValueType = typename Path::value_type; if constexpr (IsChar<ValueType>) { Open(ToU8String(path), mode, type, flag); |