mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
Fix minor warning
This commit is contained in:
parent
cf13dee1f3
commit
aa659f3c36
1 changed files with 1 additions and 1 deletions
|
@ -1088,7 +1088,7 @@ fs::file::file(const std::string& path, bs_t<open_mode> 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
|
||||
|
|
Loading…
Add table
Reference in a new issue