Make GCC happy about the return value from fwrite.

Nicky 2014-06-30 01:16:24 +02:00
parent adcffe7af5
commit ea3b2b42e1
1 changed files with 5 additions and 1 deletions

View File

@ -279,7 +279,11 @@ LLVFS::LLVFS(const std::string& index_filename, const std::string& data_filename
tm *pTm = gmtime( &tmin );
strm << std::setw(2) << std::setfill('0') << pTm->tm_year+1900 << "-" << pTm->tm_mon+1 << "-" << pTm->tm_mday << "T" << pTm->tm_hour << ":" << pTm->tm_min << ":" << pTm->tm_sec << " " << std::endl;
(void)fwrite( strm.str().c_str(), strm.str().size(), 1, fp );
size_t bytesWritten = fwrite( strm.str().c_str(), strm.str().size(), 1, fp );
if( !bytesWritten )
{
LL_WARNS() << "Eror during write to " << mIndexFilename + ".date" << LL_ENDL;
}
LLFile::close( fp );
}
// </FS:ND>