summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2022-02-01 02:19:16 -0500
committerGravatar Lioncash2022-02-01 02:19:21 -0500
commit8f32bab4c98c6842840c7818a0c08d8de4b5d5cb (patch)
treed0e54dbcb1d3e2b5de8d6c060f1c8d237e7b72ea /src
parentMerge pull request #7791 from german77/wall_clock (diff)
downloadyuzu-8f32bab4c98c6842840c7818a0c08d8de4b5d5cb.tar.gz
yuzu-8f32bab4c98c6842840c7818a0c08d8de4b5d5cb.tar.xz
yuzu-8f32bab4c98c6842840c7818a0c08d8de4b5d5cb.zip
common/file: Remove [[nodiscard]] from Open()
Since this has a void return value, there's nothing that can actually be used.
Diffstat (limited to '')
-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 2c4ab4332..a4f7944cd 100644
--- a/src/common/fs/file.h
+++ b/src/common/fs/file.h
@@ -188,9 +188,8 @@ public:
188 188
189#ifdef _WIN32 189#ifdef _WIN32
190 template <typename Path> 190 template <typename Path>
191 [[nodiscard]] void Open(const Path& path, FileAccessMode mode, 191 void Open(const Path& path, FileAccessMode mode, FileType type = FileType::BinaryFile,
192 FileType type = FileType::BinaryFile, 192 FileShareFlag flag = FileShareFlag::ShareReadOnly) {
193 FileShareFlag flag = FileShareFlag::ShareReadOnly) {
194 using ValueType = typename Path::value_type; 193 using ValueType = typename Path::value_type;
195 if constexpr (IsChar<ValueType>) { 194 if constexpr (IsChar<ValueType>) {
196 Open(ToU8String(path), mode, type, flag); 195 Open(ToU8String(path), mode, type, flag);