summaryrefslogtreecommitdiffstats
path: root/src/opt/nwk
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-02-16 23:40:23 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2012-02-16 23:40:23 -0800
commit97856d021a1282cf3fb9a86701fff3ec403fe912 (patch)
tree7dbd5471eb417540ad39fa6079ac8c32a2e06222 /src/opt/nwk
parent791b107e7a225103ee76c921c3c4a96d0e1adae2 (diff)
downloadabc-97856d021a1282cf3fb9a86701fff3ec403fe912.tar.gz
abc-97856d021a1282cf3fb9a86701fff3ec403fe912.tar.bz2
abc-97856d021a1282cf3fb9a86701fff3ec403fe912.zip
Silencing some of the gcc warnings.
Diffstat (limited to 'src/opt/nwk')
-rw-r--r--src/opt/nwk/nwkMap.c2
-rw-r--r--src/opt/nwk/nwkMerge.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/opt/nwk/nwkMap.c b/src/opt/nwk/nwkMap.c
index 61ee50e8..cb35fee9 100644
--- a/src/opt/nwk/nwkMap.c
+++ b/src/opt/nwk/nwkMap.c
@@ -104,7 +104,7 @@ If_Man_t * Nwk_ManToIf( Aig_Man_t * p, If_Par_t * pPars, Vec_Ptr_t * vAigToIf )
{
extern Vec_Int_t * Saig_ManComputeSwitchProbs( Aig_Man_t * p, int nFrames, int nPref, int fProbOne );
Vec_Int_t * vSwitching = NULL, * vSwitching2 = NULL;
- float * pSwitching, * pSwitching2;
+ float * pSwitching = NULL, * pSwitching2 = NULL;
If_Man_t * pIfMan;
If_Obj_t * pIfObj;
Aig_Obj_t * pNode, * pFanin, * pPrev;
diff --git a/src/opt/nwk/nwkMerge.c b/src/opt/nwk/nwkMerge.c
index fa9f7c78..2a43bc16 100644
--- a/src/opt/nwk/nwkMerge.c
+++ b/src/opt/nwk/nwkMerge.c
@@ -677,9 +677,10 @@ Nwk_Grf_t * Nwk_ManLutMergeReadGraph( char * pFileName )
FILE * pFile;
char Buffer[100];
int nNodes, nEdges, iNode1, iNode2;
+ int RetValue;
pFile = fopen( pFileName, "r" );
- fscanf( pFile, "%s %d", Buffer, &nNodes );
- fscanf( pFile, "%s %d", Buffer, &nEdges );
+ RetValue = fscanf( pFile, "%s %d", Buffer, &nNodes );
+ RetValue = fscanf( pFile, "%s %d", Buffer, &nEdges );
p = Nwk_ManGraphAlloc( nNodes );
while ( fscanf( pFile, "%s %d %d", Buffer, &iNode1, &iNode2 ) == 3 )
Nwk_ManGraphHashEdge( p, iNode1, iNode2 );