summaryrefslogtreecommitdiffstats
path: root/src/misc/extra/extraUtilFile.c
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/misc/extra/extraUtilFile.c
parent933744347b36315b42338dfdee5934f87d029398 (diff)
downloadabc-791b107e7a225103ee76c921c3c4a96d0e1adae2.tar.gz
abc-791b107e7a225103ee76c921c3c4a96d0e1adae2.tar.bz2
abc-791b107e7a225103ee76c921c3c4a96d0e1adae2.zip
Silencing some of the gcc warnings.
Diffstat (limited to 'src/misc/extra/extraUtilFile.c')
-rw-r--r--src/misc/extra/extraUtilFile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/misc/extra/extraUtilFile.c b/src/misc/extra/extraUtilFile.c
index b38befd6..e2c32ec3 100644
--- a/src/misc/extra/extraUtilFile.c
+++ b/src/misc/extra/extraUtilFile.c
@@ -235,6 +235,7 @@ char * Extra_FileRead( FILE * pFile )
{
int nFileSize;
char * pBuffer;
+ int RetValue;
// get the file size, in bytes
fseek( pFile, 0, SEEK_END );
nFileSize = ftell( pFile );
@@ -242,7 +243,7 @@ char * Extra_FileRead( FILE * pFile )
rewind( pFile );
// load the contents of the file into memory
pBuffer = ABC_ALLOC( char, nFileSize + 3 );
- fread( pBuffer, nFileSize, 1, pFile );
+ RetValue = fread( pBuffer, nFileSize, 1, pFile );
// terminate the string with '\0'
pBuffer[ nFileSize + 0] = '\n';
pBuffer[ nFileSize + 1] = '\0';