Fix more compile warnings and a minor bug
This commit is contained in:
parent
3e75f8e41f
commit
21b24c7725
|
|
@ -73,6 +73,8 @@ static bool get_const_argument(NetExpr*exp, verinum&res)
|
|||
return true;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* This function is not currently used. */
|
||||
static bool get_const_argument(NetExpr*exp, long&res)
|
||||
{
|
||||
verinum tmp;
|
||||
|
|
@ -81,6 +83,7 @@ static bool get_const_argument(NetExpr*exp, long&res)
|
|||
res = tmp.as_long();
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
void Statement::elaborate_sig(Design*, NetScope*) const
|
||||
{
|
||||
|
|
@ -329,7 +332,7 @@ void netclass_t::elaborate_sig(Design*des, PClass*pclass)
|
|||
|
||||
list<netrange_t> nil_list;
|
||||
ivl_type_t use_type = cur->second.type->elaborate_type(des, class_scope_);
|
||||
NetNet*sig = new NetNet(class_scope_, cur->first, NetNet::REG,
|
||||
/* NetNet*sig = */ new NetNet(class_scope_, cur->first, NetNet::REG,
|
||||
nil_list, use_type);
|
||||
}
|
||||
|
||||
|
|
@ -557,7 +560,7 @@ void PFunction::elaborate_sig(Design*des, NetScope*scope) const
|
|||
elaborate_sig_wires_(des, scope);
|
||||
|
||||
NetNet*ret_sig;
|
||||
if (gn_system_verilog() && fname=="new" || fname=="new@") {
|
||||
if (gn_system_verilog() && (fname=="new" || fname=="new@")) {
|
||||
// Special case: this is a constructor, so the return
|
||||
// signal is also the first argument. For example, the
|
||||
// source code for the definition may be:
|
||||
|
|
|
|||
|
|
@ -154,8 +154,8 @@ void vhdl_type::emit(std::ostream &of, int) const
|
|||
}
|
||||
|
||||
vhdl_type::vhdl_type(const vhdl_type &other)
|
||||
: name_(other.name_), msb_(other.msb_), lsb_(other.lsb_),
|
||||
array_name_(other.array_name_)
|
||||
: vhdl_element(other), name_(other.name_),
|
||||
msb_(other.msb_), lsb_(other.lsb_), array_name_(other.array_name_)
|
||||
{
|
||||
if (other.base_ != NULL)
|
||||
base_ = new vhdl_type(*other.base_);
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ const VType* ExpBinary::probe_type(Entity*ent, Architecture*arc) const
|
|||
return 0;
|
||||
}
|
||||
|
||||
const VType*ExpBinary::resolve_operand_types_(const VType*t1, const VType*t2) const
|
||||
const VType*ExpBinary::resolve_operand_types_(const VType*, const VType*) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue