aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-02-01 02:19:16 -0500
committerLioncash <mathew1800@gmail.com>2022-02-01 02:19:21 -0500
commit8f32bab4c98c6842840c7818a0c08d8de4b5d5cb (patch)
treed0e54dbcb1d3e2b5de8d6c060f1c8d237e7b72ea
parent11099dda2e2ab67ba4861d1e927afaa2ccce1efa (diff)
common/file: Remove [[nodiscard]] from Open()
Since this has a void return value, there's nothing that can actually be used.
-rw-r--r--src/common/fs/file.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/fs/file.h b/src/common/fs/file.h
index 2c4ab43320..a4f7944cd1 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);