summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGraham Madarasz <graham@lindenlab.com>2013-03-29 02:30:44 -0700
committerGraham Madarasz <graham@lindenlab.com>2013-03-29 02:30:44 -0700
commite89e4bf6019606580ebc2c3869bdcdd4e207fae0 (patch)
treed16d3eae1fa7d135fd8a03e70c44badf117ab88d /indra
parent9a49b1ef5f77f354dd2090f46a9321b0e0c7fd91 (diff)
Fix unused return val from fwrite causing warnings causing errors
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llviewerstatsrecorder.cpp8
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();
}