diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-12 23:25:20 +0100 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-12 23:25:20 +0100 |
commit | e3cd1048107824bb060c9ade2b1ab66a3c219801 (patch) | |
tree | fe6bd8835ab452544038ad5b40fdcbd3ddedc99d /src/opt/dau/dauNpn2.c | |
parent | 900fd5cc734524b24ffd08c3fb626fd4a5ad8f6c (diff) | |
download | abc-e3cd1048107824bb060c9ade2b1ab66a3c219801.tar.gz abc-e3cd1048107824bb060c9ade2b1ab66a3c219801.tar.bz2 abc-e3cd1048107824bb060c9ade2b1ab66a3c219801.zip |
Updated NPN classification code (compiler warnings).
Diffstat (limited to 'src/opt/dau/dauNpn2.c')
-rw-r--r-- | src/opt/dau/dauNpn2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opt/dau/dauNpn2.c b/src/opt/dau/dauNpn2.c index cf6a4f60..ff3bf8f4 100644 --- a/src/opt/dau/dauNpn2.c +++ b/src/opt/dau/dauNpn2.c @@ -774,7 +774,7 @@ void Dtt_MakeFormulaFI2( unsigned tFun, Dtt_FunImpl_t* pFun, Vec_Vec_t* vLibImpl { int j; Dtt_FunImpl_t* pImpl2; - char sFI2[100]; sprintf( sFI2, "" ); + char sFI2[100] = {0}; //sprintf( sFI2, "" ); if ( pFun->FI2 == 0 ) // PI { @@ -799,7 +799,7 @@ void Dtt_MakeFormula( unsigned tFun, Dtt_FunImpl_t* pFun, Vec_Vec_t* vLibImpl, i { int j; Dtt_FunImpl_t* pImpl1; - char sFI1[100], sCopy[100]; sprintf( sFI1, "" ); + char sFI1[100], sCopy[100] = {0}; //sprintf( sFI1, "" ); if ( pFun->FI1 == 0 ) // PI { @@ -986,7 +986,7 @@ void Dtt_DumpLibrary( Dtt_Man_t * p ) if ( i<2 ) continue; // skip const 0 and buffer Vec_VecForEachEntryLevel( Dtt_FunImpl_t*, vLibImpl, pFun, j, i ) { - sprintf( str, "" ); + str[0] = 0; //sprintf( str, "" ); Dtt_MakeFormula( (unsigned)Entry, pFun, vLibImpl, (4<<16)+(3<<12)+(2<<8)+(1<<4), str, 1, pFile ); } } |