From aa659f3c36d595ad28abbbbed2626b80e8bbac8f Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sun, 6 Oct 2019 20:40:53 +0300 Subject: [PATCH] Fix minor warning --- Utilities/File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/File.cpp b/Utilities/File.cpp index 6063ae05d7..ce0e0096c1 100644 --- a/Utilities/File.cpp +++ b/Utilities/File.cpp @@ -1088,7 +1088,7 @@ fs::file::file(const std::string& path, bs_t mode) if (mode & fs::trunc && mode & (fs::lock + fs::unread)) { // Postpone truncation in order to avoid using O_TRUNC on a locked file - ::ftruncate(fd, 0); + verify(HERE), ::ftruncate(fd, 0) == 0; } class unix_file final : public file_base