From 8f32bab4c98c6842840c7818a0c08d8de4b5d5cb Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 1 Feb 2022 02:19:16 -0500 Subject: common/file: Remove [[nodiscard]] from Open() Since this has a void return value, there's nothing that can actually be used. --- src/common/fs/file.h | 5 ++--- 1 file 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 - [[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) { Open(ToU8String(path), mode, type, flag); -- cgit v1.2.3