mirror of https://github.com/YosysHQ/abc.git
Compiler warnings.
This commit is contained in:
parent
9de8a0b346
commit
3206a7fc10
|
|
@ -1207,7 +1207,7 @@ int Prs_CreateVerilogNtk( Cba_Ntk_t * p, Prs_Ntk_t * pNtk )
|
||||||
else // box
|
else // box
|
||||||
{
|
{
|
||||||
Cba_Ntk_t * pBox = NULL; int nInputs, nOutputs = 1;
|
Cba_Ntk_t * pBox = NULL; int nInputs, nOutputs = 1;
|
||||||
char ** pOutNames, * pNtkName = Prs_NtkStr(pNtk, Prs_BoxNtk(pNtk, i));
|
char ** pOutNames = NULL, * pNtkName = Prs_NtkStr(pNtk, Prs_BoxNtk(pNtk, i));
|
||||||
Cba_ObjType_t Type = Prs_ManFindType( pNtkName, &nInputs, 1, &pOutNames );
|
Cba_ObjType_t Type = Prs_ManFindType( pNtkName, &nInputs, 1, &pOutNames );
|
||||||
if ( Type == CBA_OBJ_BOX )
|
if ( Type == CBA_OBJ_BOX )
|
||||||
{
|
{
|
||||||
|
|
@ -1297,7 +1297,7 @@ int Prs_CreateVerilogNtk( Cba_Ntk_t * p, Prs_Ntk_t * pNtk )
|
||||||
else // box
|
else // box
|
||||||
{
|
{
|
||||||
int nInputs = -1;
|
int nInputs = -1;
|
||||||
char ** pInNames, * pNtkName = Prs_NtkStr(pNtk, Prs_BoxNtk(pNtk, i));
|
char ** pInNames = NULL, * pNtkName = Prs_NtkStr(pNtk, Prs_BoxNtk(pNtk, i));
|
||||||
Cba_ObjType_t Type = Prs_ManFindType( pNtkName, &nInputs, 0, &pInNames );
|
Cba_ObjType_t Type = Prs_ManFindType( pNtkName, &nInputs, 0, &pInNames );
|
||||||
assert( Type == Cba_ObjType(p, iObj) );
|
assert( Type == Cba_ObjType(p, iObj) );
|
||||||
// mark PI objects
|
// mark PI objects
|
||||||
|
|
|
||||||
|
|
@ -397,16 +397,8 @@ int Cba_ManWriteLineFile( Cba_Ntk_t * p, int iObj, int FileAttr, int LineAttr )
|
||||||
int FileId = 0, LineId = 0;
|
int FileId = 0, LineId = 0;
|
||||||
if ( FileAttr && (FileId = Cba_ObjAttrValue(p, iObj, FileAttr)) )
|
if ( FileAttr && (FileId = Cba_ObjAttrValue(p, iObj, FileAttr)) )
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
LineId = Cba_ObjAttrValue(p, iObj, LineAttr);
|
LineId = Cba_ObjAttrValue(p, iObj, LineAttr);
|
||||||
Vec_StrPrintStr( vStr, " // " );
|
Vec_StrPrintF( vStr, " // %s(%d)", Cba_NtkStr(p, FileId), LineId );
|
||||||
Vec_StrPrintStr( vStr, Cba_NtkStr(p, FileId) );
|
|
||||||
Vec_StrPush( vStr, '(' );
|
|
||||||
Vec_StrPrintNum( vStr, LineId );
|
|
||||||
Vec_StrPush( vStr, ')' );
|
|
||||||
*/
|
|
||||||
Vec_StrPrintF( vStr, " // %s(%d)", Cba_NtkStr(p, FileId), Cba_ObjAttrValue(p, iObj, LineAttr) );
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue