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
This commit is contained in:
parent
367e9b5d08
commit
de5b4605b6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user