diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-16 21:53:16 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-16 21:53:16 -0800 |
commit | 791b107e7a225103ee76c921c3c4a96d0e1adae2 (patch) | |
tree | 80d8e58053fbca2087d57b7fa8cbca7c594aa764 /src/map/amap/amapLiberty.c | |
parent | 933744347b36315b42338dfdee5934f87d029398 (diff) | |
download | abc-791b107e7a225103ee76c921c3c4a96d0e1adae2.tar.gz abc-791b107e7a225103ee76c921c3c4a96d0e1adae2.tar.bz2 abc-791b107e7a225103ee76c921c3c4a96d0e1adae2.zip |
Silencing some of the gcc warnings.
Diffstat (limited to 'src/map/amap/amapLiberty.c')
-rw-r--r-- | src/map/amap/amapLiberty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/amap/amapLiberty.c b/src/map/amap/amapLiberty.c index 9a213d2a..c31bc141 100644 --- a/src/map/amap/amapLiberty.c +++ b/src/map/amap/amapLiberty.c @@ -826,6 +826,7 @@ Amap_Tree_t * Amap_LibertyStart( char * pFileName ) { FILE * pFile; Amap_Tree_t * p; + int RetValue; // start the manager p = ABC_ALLOC( Amap_Tree_t, 1 ); memset( p, 0, sizeof(Amap_Tree_t) ); @@ -839,7 +840,7 @@ Amap_Tree_t * Amap_LibertyStart( char * pFileName ) } pFile = fopen( pFileName, "rb" ); p->pContents = ABC_ALLOC( char, p->nContents+1 ); - fread( p->pContents, p->nContents, 1, pFile ); + RetValue = fread( p->pContents, p->nContents, 1, pFile ); fclose( pFile ); p->pContents[p->nContents] = 0; // other |