Commit 978347e0 authored by rmcilroy's avatar rmcilroy Committed by Commit bot

Fix gcc error for ignoring return value on stack_trace_posix.cc

NOTRY=true

Review-Url: https://codereview.chromium.org/2260543002
Cr-Commit-Position: refs/heads/master@{#38722}
parent 757ea240
......@@ -175,7 +175,8 @@ void ProcessBacktrace(void* const* trace, size_t size,
void PrintToStderr(const char* output) {
// NOTE: This code MUST be async-signal safe (it's used by in-process
// stack dumping signal handler). NO malloc or stdio is allowed here.
write(STDERR_FILENO, output, strlen(output));
ssize_t return_val = write(STDERR_FILENO, output, strlen(output));
USE(return_val);
}
void StackDumpSignalHandler(int signal, siginfo_t* info, void* void_context) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment