diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-12 06:51:22 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-12 06:51:22 +0000 |
commit | 2e90beebe83357f30216c971c2c2e6d34efe5e0d (patch) | |
tree | 3210bea527df63b837bc4b8de88b3a42122a1d5f /base/file_util_posix.cc | |
parent | dee9b1db807ffc75de7f6071ad6c622e843a54a9 (diff) | |
download | chromium_src-2e90beebe83357f30216c971c2c2e6d34efe5e0d.zip chromium_src-2e90beebe83357f30216c971c2c2e6d34efe5e0d.tar.gz chromium_src-2e90beebe83357f30216c971c2c2e6d34efe5e0d.tar.bz2 |
Fix clang build after landing http://codereview.chromium.org/6820030
TBR=agl
Review URL: http://codereview.chromium.org/6824070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r-- | base/file_util_posix.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 3d4f5b5..f25bd5c 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -418,7 +418,7 @@ bool CreateTemporaryFile(FilePath* path) { int fd = CreateAndOpenFdForTemporaryFile(directory, path); if (fd < 0) return false; - HANDLE_EINTR(close(fd)); + ignore_result(HANDLE_EINTR(close(fd))); return true; } @@ -780,7 +780,7 @@ void MemoryMappedFile::CloseHandles() { if (data_ != NULL) munmap(data_, length_); if (file_ != base::kInvalidPlatformFileValue) - HANDLE_EINTR(close(file_)); + ignore_result(HANDLE_EINTR(close(file_))); data_ = NULL; length_ = 0; @@ -851,7 +851,7 @@ bool CopyFile(const FilePath& from_path, const FilePath& to_path) { int outfile = HANDLE_EINTR(creat(to_path.value().c_str(), 0666)); if (outfile < 0) { - HANDLE_EINTR(close(infile)); + ignore_result(HANDLE_EINTR(close(infile))); return false; } |