Clean up compiler warnings
stupid changes to shut up the compiler tested with gcc-4.2.2
This commit is contained in:
parent
17cc661336
commit
25ad1c174a
5
PWire.cc
5
PWire.cc
|
|
@ -27,8 +27,9 @@ PWire::PWire(const pform_name_t&n,
|
|||
NetNet::PortType pt,
|
||||
ivl_variable_type_t dt)
|
||||
: hname_(n), type_(t), port_type_(pt), data_type_(dt),
|
||||
signed_(false), isint_(false), port_set_(false), net_set_(false),
|
||||
port_msb_(0), port_lsb_(0), net_msb_(0), net_lsb_(0), error_cnt_(0),
|
||||
signed_(false), isint_(false),
|
||||
port_msb_(0), port_lsb_(0), port_set_(false),
|
||||
net_msb_(0), net_lsb_(0), net_set_(false), error_cnt_(0),
|
||||
lidx_(0), ridx_(0)
|
||||
{
|
||||
if (t == NetNet::INTEGER) {
|
||||
|
|
|
|||
|
|
@ -2274,7 +2274,7 @@ bool PEIdent::eval_part_select_(Design*des, NetScope*scope, NetNet*sig,
|
|||
case index_component_t::SEL_PART: {
|
||||
|
||||
long msb, lsb;
|
||||
bool flag = calculate_parts_(des, scope, msb, lsb);
|
||||
/* bool flag = */ calculate_parts_(des, scope, msb, lsb);
|
||||
|
||||
lidx = sig->sb_to_idx(lsb);
|
||||
midx = sig->sb_to_idx(msb);
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ PLI_INT32 sys_dumpvars_compiletf(PLI_BYTE8 *name)
|
|||
" numeric.\n", name);
|
||||
|
||||
/* The rest of the arguments are either a module or a variable. */
|
||||
while (arg = vpi_scan(argv)) {
|
||||
while ((arg=vpi_scan(argv)) != NULL) {
|
||||
switch(vpi_get(vpiType, arg)) {
|
||||
/* The module types. */
|
||||
case vpiModule:
|
||||
|
|
|
|||
|
|
@ -414,7 +414,7 @@ void compile_real_array(char*label, char*name, int last, int first,
|
|||
|
||||
void compile_net_array(char*label, char*name, int last, int first)
|
||||
{
|
||||
vpiHandle obj = common_array_build(label, name, last, first);
|
||||
/* vpiHandle obj = */ common_array_build(label, name, last, first);
|
||||
|
||||
free(label);
|
||||
free(name);
|
||||
|
|
|
|||
|
|
@ -653,7 +653,7 @@ static void modpath_src_get_delays ( vpiHandle ref, p_vpi_delay delays )
|
|||
vpip_time_to_timestruct(delays->da+idx, tmp[idx]);
|
||||
}
|
||||
} else {
|
||||
int units = src->dest->scope->time_units;
|
||||
/* int units = src->dest->scope->time_units; */
|
||||
for (idx = 0; idx < 12; idx += 1) {
|
||||
delays->da[idx].real = vpip_time_to_scaled_real(tmp[idx], src->dest->scope);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue