aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-12-18 19:52:36 +0000
committerthestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-12-18 19:52:36 +0000
commit74f640a92eff557e0ebef7de8f9f0c4d61bd5f06 (patch)
tree826804f81b5d038c26233e8a904d5c4299ef80e0 /src/client
parentSwitch scoped_ptr.h to a compatible google3 implementation. (diff)
downloadbreakpad-74f640a92eff557e0ebef7de8f9f0c4d61bd5f06.tar.xz
Use a proper ignore_result() to fix a ftruncate warn_unused_result warning with GCC 4.8.
BUG=492 R=mark@chromium.org Review URL: https://breakpad.appspot.com/944003 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1266 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client')
-rw-r--r--src/client/linux/handler/exception_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc
index b78568d1..fc777a60 100644
--- a/src/client/linux/handler/exception_handler.cc
+++ b/src/client/linux/handler/exception_handler.cc
@@ -86,6 +86,7 @@
#include <utility>
#include <vector>
+#include "common/basictypes.h"
#include "common/linux/linux_libc_support.h"
#include "common/memory.h"
#include "client/linux/log/log.h"
@@ -574,7 +575,7 @@ bool ExceptionHandler::WriteMinidump() {
// Reposition the FD to its beginning and resize it to get rid of the
// previous minidump info.
lseek(minidump_descriptor_.fd(), 0, SEEK_SET);
- static_cast<void>(ftruncate(minidump_descriptor_.fd(), 0));
+ ignore_result(ftruncate(minidump_descriptor_.fd(), 0));
}
// Allow this process to be dumped.