summaryrefslogtreecommitdiff
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorGravatar Lioncash2020-10-29 23:30:42 -0400
committerGravatar Lioncash2020-10-30 00:13:21 -0400
commit26547d3e3be403047445fd39e671d7ef3b88dabb (patch)
tree2189a7d0f6eb01a30a16ce2137bb952a0a854fea /src/common/file_util.h
parentMerge pull request #4831 from lioncash/fmt (diff)
downloadyuzu-26547d3e3be403047445fd39e671d7ef3b88dabb.tar.gz
yuzu-26547d3e3be403047445fd39e671d7ef3b88dabb.tar.xz
yuzu-26547d3e3be403047445fd39e671d7ef3b88dabb.zip
General: Make ignoring a discarded return value an error
Allows our CI to catch more potential bugs. This also removes the [[nodiscard]] attribute of IOFile's Open member function. There are cases where a file may want to be opened, but have the status of it checked at a later time.
Diffstat (limited to '')
-rw-r--r--src/common/file_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 8b587320f..840cde2a6 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -232,7 +232,7 @@ public:
232 232
233 void Swap(IOFile& other) noexcept; 233 void Swap(IOFile& other) noexcept;
234 234
235 [[nodiscard]] bool Open(const std::string& filename, const char openmode[], int flags = 0); 235 bool Open(const std::string& filename, const char openmode[], int flags = 0);
236 bool Close(); 236 bool Close();
237 237
238 template <typename T> 238 template <typename T>