Remove some new cppcheck warnings in tgt-vlog95

This commit is contained in:
Cary R 2012-09-03 11:57:01 -07:00
parent 29ade50cab
commit adff837399
3 changed files with 3 additions and 3 deletions

View File

@ -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_lpm_t lpm = 0;
ivl_net_const_t net_const = 0; ivl_net_const_t net_const = 0;
ivl_net_logic_t nlogic = 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. */ /* Look for a signal in the local scope first. */
sig = find_local_signal(scope, nex, array_word); sig = find_local_signal(scope, nex, array_word);
if (sig) return sig; if (sig) return sig;

View File

@ -171,7 +171,7 @@ void emit_scaled_delayx(ivl_scope_t scope, ivl_expr_t expr, unsigned is_stmt)
if (rtype > 0) { if (rtype > 0) {
fprintf(vlog_out, "<invalid>"); fprintf(vlog_out, "<invalid>");
fprintf(stderr, "%s:%u: vlog95 error: Time value is " 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", "safely represented.\n",
ivl_expr_file(expr), ivl_expr_lineno(expr), ivl_expr_file(expr), ivl_expr_lineno(expr),
rtype); rtype);

View File

@ -140,7 +140,7 @@ void emit_number(const char *bits, unsigned nbits, unsigned is_signed,
if (rtype > 0) { if (rtype > 0) {
fprintf(vlog_out, "<invalid>"); fprintf(vlog_out, "<invalid>");
fprintf(stderr, "%s:%u: vlog95 error: Signed number is " 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, "safely represented.\n", file, lineno,
rtype); rtype);
vlog_errors += 1; vlog_errors += 1;