Commit de5b4605 authored by ager@chromium.org's avatar ager@chromium.org

Check the return value of fwrite.

Newer versions of glib stdio mark fwrite() with war_unused_result.

Commiting for estade@chromium.org.

See http://codereview.chromium.org/27305


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1392 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 367e9b5d
......@@ -386,7 +386,9 @@ void LogMessageBuilder::AppendDetailed(String* str, bool show_impl_info) {
// Write the log message to the log file currently opened.
void LogMessageBuilder::WriteToLogFile() {
ASSERT(pos_ <= Logger::kMessageBufferSize);
fwrite(Logger::message_buffer_, 1, pos_, Logger::logfile_);
size_t rv = fwrite(Logger::message_buffer_, 1, pos_, Logger::logfile_);
ASSERT(rv == static_cast<size_t>(pos_));
USE(rv);
}
#endif
......
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