Skip to content

Commit

Permalink
Silence warning about unused variables
Browse files Browse the repository at this point in the history
The assert is disabled in release builds.
  • Loading branch information
madebr authored and sarnold committed Oct 29, 2022
1 parent 63e7aba commit c78dd76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/misc/util/utilDouble.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ static inline void Xdbl_Test()
xdbl b = Xdbl_FromDouble(10.28828287);
xdbl ab = Xdbl_Mul(a, b);

xdbl ten100 = Xdbl_FromDouble( 1e100 );
xdbl ten100_ = ABC_CONST(0x014c924d692ca61b);
xdbl ten100 ___unused = Xdbl_FromDouble( 1e100 );
xdbl ten100_ ___unused = ABC_CONST(0x014c924d692ca61b);

assert( ten100 == ten100_ );

Expand Down
2 changes: 1 addition & 1 deletion src/misc/util/utilTruth.h
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ static inline int Abc_TtCheckCondDep2( word * pTruth, int nVars, int nSuppLim )
}
static inline int Abc_TtCheckCondDep( word * pTruth, int nVars, int nSuppLim )
{
int nVarsMax = 13;
int nVarsMax ___unused = 13;
word Cof0[128], Cof1[128]; // pow( 2, nVarsMax-6 )
int v, d, nWords = Abc_TtWordNum(nVars);
assert( nVars <= nVarsMax );
Expand Down

0 comments on commit c78dd76

Please sign in to comment.