Remove some new cppcheck warnings in tgt-vlog95
This commit is contained in:
parent
29ade50cab
commit
adff837399
|
|
@ -606,7 +606,7 @@ static ivl_signal_t nexus_is_signal(ivl_scope_t scope, ivl_nexus_t nex,
|
|||
ivl_lpm_t lpm = 0;
|
||||
ivl_net_const_t net_const = 0;
|
||||
ivl_net_logic_t nlogic = 0;
|
||||
ivl_signal_t sig = 0;
|
||||
ivl_signal_t sig;
|
||||
/* Look for a signal in the local scope first. */
|
||||
sig = find_local_signal(scope, nex, array_word);
|
||||
if (sig) return sig;
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ void emit_scaled_delayx(ivl_scope_t scope, ivl_expr_t expr, unsigned is_stmt)
|
|||
if (rtype > 0) {
|
||||
fprintf(vlog_out, "<invalid>");
|
||||
fprintf(stderr, "%s:%u: vlog95 error: Time value is "
|
||||
"greater than 64 bits (%u) and cannot be "
|
||||
"greater than 64 bits (%d) and cannot be "
|
||||
"safely represented.\n",
|
||||
ivl_expr_file(expr), ivl_expr_lineno(expr),
|
||||
rtype);
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ void emit_number(const char *bits, unsigned nbits, unsigned is_signed,
|
|||
if (rtype > 0) {
|
||||
fprintf(vlog_out, "<invalid>");
|
||||
fprintf(stderr, "%s:%u: vlog95 error: Signed number is "
|
||||
"greater than 32 bits (%u) and cannot be "
|
||||
"greater than 32 bits (%d) and cannot be "
|
||||
"safely represented.\n", file, lineno,
|
||||
rtype);
|
||||
vlog_errors += 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue