Skip to content

Commit d9c954c

Browse files
committed
clean up all compiler warnings in the bzl build
Signed-off-by: Matt Liberty <[email protected]>
1 parent 2baa405 commit d9c954c

File tree

22 files changed

+52
-45
lines changed

22 files changed

+52
-45
lines changed

src/aig/aig/aigCanon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static Aig_RMan_t * s_pRMan = NULL;
9898
***********************************************************************/
9999
Aig_RMan_t * Aig_RManStart()
100100
{
101-
static Bdc_Par_t Pars = {0}, * pPars = &Pars;
101+
static Bdc_Par_t Pars = {0, 0, 0}, * pPars = &Pars;
102102
Aig_RMan_t * p;
103103
p = ABC_ALLOC( Aig_RMan_t, 1 );
104104
memset( p, 0, sizeof(Aig_RMan_t) );

src/aig/gia/giaBidec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ if ( Kit_TruthSupportSize(pTruth, nVars) != nVars )
233233
Gia_Man_t * Gia_ManPerformBidec( Gia_Man_t * p, int fVerbose )
234234
{
235235
Bdc_Man_t * pManDec;
236-
Bdc_Par_t Pars = {0}, * pPars = &Pars;
236+
Bdc_Par_t Pars = {0, 0, 0}, * pPars = &Pars;
237237
Vec_Int_t * vLeaves, * vTruth, * vVisited;
238238
Gia_Man_t * pNew, * pTemp;
239239
Gia_Obj_t * pObj;

src/aig/gia/giaCut.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ int Gia_ManCountSelfCuts( Gia_Man_t * p, Gia_Sto_t * pSto )
10781078
void Gia_ManEvalCutHashing( Gia_Man_t * p, Gia_Sto_t * pSto )
10791079
{
10801080
Hsh_VecMan_t * pHash = Hsh_VecManStart( 100000 );
1081-
Vec_Int_t vTemp = {0};
1081+
Vec_Int_t vTemp = {0, 0, nullptr};
10821082
Vec_Int_t * vLevel; int i, k, * pCut, nBytes = 0, nCuts = 0;
10831083
Vec_WecForEachLevel( pSto->vCuts, vLevel, i ) if ( Vec_IntSize(vLevel) ) {
10841084
Gia_Obj_t * pObj = Gia_ManObj(p, i);

src/aig/gia/giaRex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ void Gia_ManAutomWalkOne( Gia_Man_t * p, int nSteps, Vec_Wrd_t * vStates, Vec_In
430430
continue;
431431
Index = Vec_WrdFind( vStates, pNext[k] );
432432
Count = Index == -1 ? 0 : Vec_IntEntry( vCounts, Index );
433-
if ( CountMin > Count || (CountMin != ABC_INFINITY && Count && ((float)CountMin / Count) > (float)rand()/RAND_MAX ) )
433+
if ( CountMin > Count || (CountMin != ABC_INFINITY && Count && ((double)CountMin / Count) > (double)rand()/RAND_MAX ) )
434434
{
435435
CountMin = Count;
436436
IndexMin = Index;

src/aig/gia/giaTransduction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ class Transduction: ManUtil<Man, lit, LitMax> {
888888
vvCs[i].push_back(vCsOld[j]);
889889
continue;
890890
}
891-
vPfUpdates[i] = vPfUpdates[i] | vPfUpdates[i0];
891+
vPfUpdates[i] = vPfUpdates[i] || vPfUpdates[i0];
892892
vvFos[i0].erase(find(vvFos[i0].begin(), vvFos[i0].end(), i));
893893
count++;
894894
typename std::vector<int>::iterator itfi = vFisOld.begin() + j;

src/base/abci/abcBidec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Hop_Obj_t * Abc_NodeIfNodeResyn( Bdc_Man_t * p, Hop_Man_t * pHop, Hop_Obj_t * pR
109109
***********************************************************************/
110110
void Abc_NtkBidecResyn( Abc_Ntk_t * pNtk, int fVerbose )
111111
{
112-
Bdc_Par_t Pars = {0}, * pPars = &Pars;
112+
Bdc_Par_t Pars = {0, 0, 0}, * pPars = &Pars;
113113
Bdc_Man_t * p;
114114
Abc_Obj_t * pObj;
115115
Vec_Int_t * vTruth;

src/base/abci/abcDec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
628628
{
629629
// perform bi-decomposition and count AIG nodes
630630
Bdc_Man_t * pManDec;
631-
Bdc_Par_t Pars = {0}, * pPars = &Pars;
631+
Bdc_Par_t Pars = {0, 0, 0}, * pPars = &Pars;
632632
pPars->nVarsMax = p->nVars;
633633
pManDec = Bdc_ManAlloc( pPars );
634634
for ( i = 0; i < p->nFuncs; i++ )

src/base/abci/abcPrint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int Abc_NtkCompareAndSaveBest( Abc_Ntk_t * pNtk )
7777
int Edges; // edges in the best saved network
7878
int nPis; // the number of primary inputs
7979
int nPos; // the number of primary outputs
80-
} ParsNew, ParsBest = { 0 };
80+
} ParsNew, ParsBest = { 0, 0, 0, 0, 0, 0, 0 };
8181
char * pFileNameOut;
8282
// free storage for the name
8383
if ( pNtk == NULL )

src/base/cba/cbaReadVer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static const Prs_VerPrim_t s_VerilogPrims[16] =
104104
{CBA_BOX_XOR, "xor" },
105105
{CBA_BOX_XNOR, "xnor" },
106106
{CBA_BOX_TRI, "bufif1"},
107-
{0}
107+
{0, ""}
108108
};
109109

110110
// predefined operator names

src/bool/bdc/bdcCore.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ void Bdc_ManDecomposeTest( unsigned uTruth, int nVars )
344344
{
345345
static int Counter = 0;
346346
static int Total = 0;
347-
Bdc_Par_t Pars = {0}, * pPars = &Pars;
347+
Bdc_Par_t Pars = {0, 0, 0}, * pPars = &Pars;
348348
Bdc_Man_t * p;
349349
int RetValue;
350350
// unsigned uCare = ~0x888f888f;
@@ -379,7 +379,7 @@ int Bdc_ManBidecNodeNum( word * pFunc, word * pCare, int nVars, int fVerbose )
379379
{
380380
int nNodes;
381381
Bdc_Man_t * pManDec;
382-
Bdc_Par_t Pars = {0}, * pPars = &Pars;
382+
Bdc_Par_t Pars = {0, 0, 0}, * pPars = &Pars;
383383
pPars->nVarsMax = nVars;
384384
pManDec = Bdc_ManAlloc( pPars );
385385
Bdc_ManDecompose( pManDec, (unsigned *)pFunc, (unsigned *)pCare, nVars, NULL, 1000 );
@@ -428,7 +428,7 @@ Vec_Int_t * Bdc_ManBidecResub( word * pFunc, word * pCare, int nVars )
428428
Vec_Int_t * vRes = NULL;
429429
int nNodes;
430430
Bdc_Man_t * pManDec;
431-
Bdc_Par_t Pars = {0}, * pPars = &Pars;
431+
Bdc_Par_t Pars = {0, 0, 0}, * pPars = &Pars;
432432
pPars->nVarsMax = nVars;
433433
pManDec = Bdc_ManAlloc( pPars );
434434
Bdc_ManDecompose( pManDec, (unsigned *)pFunc, (unsigned *)pCare, nVars, NULL, 1000 );

0 commit comments

Comments
 (0)