From 791b107e7a225103ee76c921c3c4a96d0e1adae2 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 16 Feb 2012 21:53:16 -0800 Subject: Silencing some of the gcc warnings. --- src/opt/rwr/rwrUtil.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/opt/rwr') diff --git a/src/opt/rwr/rwrUtil.c b/src/opt/rwr/rwrUtil.c index 1b2e8760..ac723588 100644 --- a/src/opt/rwr/rwrUtil.c +++ b/src/opt/rwr/rwrUtil.c @@ -563,6 +563,7 @@ void Rwr_ManLoadFromFile( Rwr_Man_t * p, char * pFileName ) unsigned * pBuffer; int Level, Volume, nEntries, fExor; int i, clk = clock(); + int RetValue; // load the data pFile = fopen( pFileName, "rb" ); @@ -571,9 +572,9 @@ void Rwr_ManLoadFromFile( Rwr_Man_t * p, char * pFileName ) printf( "Rwr_ManLoadFromFile: Cannot open file \"%s\".\n", pFileName ); return; } - fread( &nEntries, sizeof(int), 1, pFile ); + RetValue = fread( &nEntries, sizeof(int), 1, pFile ); pBuffer = ABC_ALLOC( unsigned, nEntries * 2 ); - fread( pBuffer, sizeof(unsigned), nEntries * 2, pFile ); + RetValue = fread( pBuffer, sizeof(unsigned), nEntries * 2, pFile ); fclose( pFile ); // reconstruct the forest for ( i = 0; i < nEntries; i++ ) -- cgit v1.2.3