From ce9dd45422e1f4ecce6df68da086b8bfc2100756 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 27 Nov 2020 12:41:26 +0000 Subject: [PATCH] Add [[nodiscard]] to RenameOver(...) --- src/util/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);