Fix compile time warnings
These warnings actually look a lot like errors.
This commit is contained in:
parent
f602687187
commit
103138cf4b
|
|
@ -643,6 +643,7 @@ static PLI_INT32 sys_urandom_range_calltf(PLI_BYTE8 *name)
|
|||
/* Calculate and return the result. */
|
||||
val.value.integer = urandom(0, i_maxval, i_minval);
|
||||
vpi_put_value(callh, &val, 0, vpiNoDelay);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static PLI_INT32 sys_dist_uniform_calltf(PLI_BYTE8 *name)
|
||||
|
|
|
|||
|
|
@ -918,7 +918,7 @@ void vpi_get_delays(vpiHandle expr, p_vpi_delay delays)
|
|||
if (vpi_trace)
|
||||
{
|
||||
fprintf(vpi_trace,
|
||||
"vpi_get_delays(%s, %p) -->\n", expr, delays);
|
||||
"vpi_get_delays(%p, %p) -->\n", expr, delays);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -936,7 +936,7 @@ void vpi_put_delays(vpiHandle expr, p_vpi_delay delays)
|
|||
if (vpi_trace)
|
||||
{
|
||||
fprintf(vpi_trace,
|
||||
"vpi_put_delays(%s, %p) -->\n", expr, delays);
|
||||
"vpi_put_delays(%p, %p) -->\n", expr, delays);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ void compile_netw(char*label, char*array_label, unsigned long array_addr,
|
|||
const char *name = get_array_name(array_label);
|
||||
unsigned len = strlen(name) + 32;
|
||||
char *nbuf = (char *)malloc(len);
|
||||
snprintf(nbuf, len, "%s[%d]", name, array_addr +
|
||||
snprintf(nbuf, len, "%s[%lu]", name, array_addr +
|
||||
get_array_base(array_label));
|
||||
__compile_net(label, strdup(nbuf), array_label, array_addr,
|
||||
msb, lsb, signed_flag, net8_flag,
|
||||
|
|
|
|||
Loading…
Reference in New Issue