diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-11-27 12:41:26 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-11-27 12:41:26 +0000 |
commit | ce9dd45422e1f4ecce6df68da086b8bfc2100756 (patch) | |
tree | 211b380f7f870e0004bbc0198d7ff197fd47af85 | |
parent | 9429a398e291a1b5edcfc657b94fcaf52cd1d8f9 (diff) | |
download | bitcoin-ce9dd45422e1f4ecce6df68da086b8bfc2100756.tar.xz |
Add [[nodiscard]] to RenameOver(...)
-rw-r--r-- | src/util/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/system.h b/src/util/system.h index 1df194ca84..36a6170a17 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -60,7 +60,7 @@ bool FileCommit(FILE *file); bool TruncateFile(FILE *file, unsigned int length); int RaiseFileDescriptorLimit(int nMinFD); void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length); -bool RenameOver(fs::path src, fs::path dest); +[[nodiscard]] bool RenameOver(fs::path src, fs::path dest); bool LockDirectory(const fs::path& directory, const std::string lockfile_name, bool probe_only=false); void UnlockDirectory(const fs::path& directory, const std::string& lockfile_name); bool DirIsWritable(const fs::path& directory); |