diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-10-17 18:04:07 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-10-17 18:04:07 -0700 |
commit | cb4631e64e9a95cafc4ef31a60f006c7f067cf91 (patch) | |
tree | ea7a351e796da886f3f91955207972cc2e166be0 /src/base/io/ioWriteBook.c | |
parent | 9f2c4e998898a8485cd4afb89ffc268752b1b2e1 (diff) | |
download | abc-cb4631e64e9a95cafc4ef31a60f006c7f067cf91.tar.gz abc-cb4631e64e9a95cafc4ef31a60f006c7f067cf91.tar.bz2 abc-cb4631e64e9a95cafc4ef31a60f006c7f067cf91.zip |
Compiler warnings.
Diffstat (limited to 'src/base/io/ioWriteBook.c')
-rw-r--r-- | src/base/io/ioWriteBook.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/base/io/ioWriteBook.c b/src/base/io/ioWriteBook.c index 92f49d62..8dacbc12 100644 --- a/src/base/io/ioWriteBook.c +++ b/src/base/io/ioWriteBook.c @@ -201,10 +201,12 @@ unsigned Io_NtkWriteNodes( FILE * pFile, Abc_Ntk_t * pNtk ) Io_NtkWritePiPoNodes( pFile, pNtk ); // write the latches if ( !Abc_NtkIsComb(pNtk) ) - Abc_NtkForEachLatch( pNtk, pLatch, i ) { - Io_NtkWriteLatchNode( pFile, pLatch, NODES ); - coreCellArea+=6*coreHeight; + Abc_NtkForEachLatch( pNtk, pLatch, i ) + { + Io_NtkWriteLatchNode( pFile, pLatch, NODES ); + coreCellArea+=6*coreHeight; + } } // write each internal node pProgress = Extra_ProgressBarStart( stdout, Abc_NtkNodeNum(pNtk) ); @@ -692,11 +694,13 @@ void Io_NtkWritePl( FILE * pFile, Abc_Ntk_t * pNtk, unsigned numTerms, double la } if( !Abc_NtkIsComb(pNtk) ) + { Abc_NtkForEachLatch( pNtk, pLatch, i ) { Io_NtkWriteLatchNode( pFile, pLatch, PL ); fprintf( pFile, "\t%d\t\t%d\t: %s\n", 0, 0, "N" ); } + } Abc_NtkForEachNode( pNtk, pNode, i ) { @@ -724,7 +728,7 @@ Vec_Ptr_t * Io_NtkOrderingPads( Abc_Ntk_t * pNtk, Vec_Ptr_t * vTerms ) int * pOrdered = ABC_ALLOC(int, numTerms); int newNeighbor=1; Vec_Ptr_t * vOrderedTerms = Vec_PtrAlloc ( numTerms ); - Abc_Obj_t * pNeighbor, * pNextTerm; + Abc_Obj_t * pNeighbor = NULL, * pNextTerm; unsigned i; for( i=0 ; i<numTerms ; i++ ) |