summaryrefslogtreecommitdiffstats
path: root/src/base/ver
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-02-16 21:53:16 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2012-02-16 21:53:16 -0800
commit791b107e7a225103ee76c921c3c4a96d0e1adae2 (patch)
tree80d8e58053fbca2087d57b7fa8cbca7c594aa764 /src/base/ver
parent933744347b36315b42338dfdee5934f87d029398 (diff)
downloadabc-791b107e7a225103ee76c921c3c4a96d0e1adae2.tar.gz
abc-791b107e7a225103ee76c921c3c4a96d0e1adae2.tar.bz2
abc-791b107e7a225103ee76c921c3c4a96d0e1adae2.zip
Silencing some of the gcc warnings.
Diffstat (limited to 'src/base/ver')
-rw-r--r--src/base/ver/verStream.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/ver/verStream.c b/src/base/ver/verStream.c
index 75e183b3..2cfef1d5 100644
--- a/src/base/ver/verStream.c
+++ b/src/base/ver/verStream.c
@@ -76,6 +76,7 @@ Ver_Stream_t * Ver_StreamAlloc( char * pFileName )
Ver_Stream_t * p;
FILE * pFile;
int nCharsToRead;
+ int RetValue;
// check if the file can be opened
pFile = fopen( pFileName, "rb" );
if ( pFile == NULL )
@@ -99,7 +100,7 @@ Ver_Stream_t * Ver_StreamAlloc( char * pFileName )
// determine how many chars to read
nCharsToRead = VER_MINIMUM(p->nFileSize, VER_BUFFER_SIZE);
// load the first part into the buffer
- fread( p->pBuffer, nCharsToRead, 1, p->pFile );
+ RetValue = fread( p->pBuffer, nCharsToRead, 1, p->pFile );
p->nFileRead = nCharsToRead;
// set the ponters to the end and the stopping point
p->pBufferEnd = p->pBuffer + nCharsToRead;
@@ -123,6 +124,7 @@ Ver_Stream_t * Ver_StreamAlloc( char * pFileName )
void Ver_StreamReload( Ver_Stream_t * p )
{
int nCharsUsed, nCharsToRead;
+ int RetValue;
assert( !p->fStop );
assert( p->pBufferCur > p->pBufferStop );
assert( p->pBufferCur < p->pBufferEnd );
@@ -134,7 +136,7 @@ void Ver_StreamReload( Ver_Stream_t * p )
// determine how many chars we will read
nCharsToRead = VER_MINIMUM( p->nBufferSize - nCharsUsed, p->nFileSize - p->nFileRead );
// read the chars
- fread( p->pBuffer + nCharsUsed, nCharsToRead, 1, p->pFile );
+ RetValue = fread( p->pBuffer + nCharsUsed, nCharsToRead, 1, p->pFile );
p->nFileRead += nCharsToRead;
// set the ponters to the end and the stopping point
p->pBufferEnd = p->pBuffer + nCharsUsed + nCharsToRead;