diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-30 00:35:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 00:35:40 -0700 |
commit | 8aa9ae5ba5269b0c82f771a6fcf47b2534b5faf9 (patch) | |
tree | 1eaa9ee780dab30783252f6ab68af1e8e62f3f07 /src/common/file_util.h | |
parent | 131a75b65d088686f7b50392f0ee47a34c4a0512 (diff) | |
parent | 11d0a6e7b8a31cb266b56f4f2689824d242adfbf (diff) |
Merge pull request #4868 from lioncash/discard-error
General: Make ignoring a discarded return value an error
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r-- | src/common/file_util.h | 2 |
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: void Swap(IOFile& other) noexcept; - [[nodiscard]] bool Open(const std::string& filename, const char openmode[], int flags = 0); + bool Open(const std::string& filename, const char openmode[], int flags = 0); bool Close(); template <typename T> |