Index: third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc |
diff --git a/third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc b/third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc |
index cb09732291281446c27d98fda091a21a193e1b17..9ad801f7f0334f6dea8baf15abf3968392ed8b4a 100644 |
--- a/third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc |
+++ b/third_party/crashpad/crashpad/test/scoped_temp_dir_test.cc |
@@ -38,8 +38,10 @@ void CreateFile(const base::FilePath& path) { |
#if defined(OS_POSIX) |
int fd = HANDLE_EINTR(creat(path.value().c_str(), 0644)); |
ASSERT_GE(fd, 0) << ErrnoMessage("creat") << " " << path.value(); |
- ASSERT_EQ(IGNORE_EINTR(close(fd)), 0) << ErrnoMessage("close") << " " |
- << path.value(); |
+ |
+ // gcc refuses to compile ASSERT_EQ(IGNORE_EINTR(close(fd)), 0). |
+ int close_rv = IGNORE_EINTR(close(fd)); |
+ ASSERT_EQ(close_rv, 0) << ErrnoMessage("close") << " " << path.value(); |
#elif defined(OS_WIN) |
int fd = _wcreat(path.value().c_str(), _S_IREAD | _S_IWRITE); |
ASSERT_GE(fd, 0) << ErrnoMessage("_wcreat") << " " << path.value(); |