diff options
author | Graham Madarasz <graham@lindenlab.com> | 2013-03-29 02:30:44 -0700 |
---|---|---|
committer | Graham Madarasz <graham@lindenlab.com> | 2013-03-29 02:30:44 -0700 |
commit | e89e4bf6019606580ebc2c3869bdcdd4e207fae0 (patch) | |
tree | d16d3eae1fa7d135fd8a03e70c44badf117ab88d /indra | |
parent | 9a49b1ef5f77f354dd2090f46a9321b0e0c7fd91 (diff) |
Fix unused return val from fwrite causing warnings causing errors
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llviewerstatsrecorder.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llviewerstatsrecorder.cpp b/indra/newview/llviewerstatsrecorder.cpp index 91e485d01b..a63ea69ede 100755 --- a/indra/newview/llviewerstatsrecorder.cpp +++ b/indra/newview/llviewerstatsrecorder.cpp @@ -216,7 +216,9 @@ void LLViewerStatsRecorder::writeToLog( F32 interval ) << "Texture Fetch bps\t" << "\n"; - fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile ); + size_t wrote = fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile ); + llassert(wrote == data_msg.str().size()); + (void)wrote; } else { @@ -249,7 +251,9 @@ void LLViewerStatsRecorder::writeToLog( F32 interval ) << "\t" << (mTextureFetchSize * 8 / delta_time) << "\n"; - fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile ); + size_t data_written = fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile ); + llassert(data_written == data_msg.str().size()); + (void)data_written; clearStats(); } |