Lint removal

elaborate.cc:2456: warning: suggest parentheses around comparison in operand of &
vpi/vcd_priv.c:210: warning: operation on 'idx' may be undefined

Probable behavior change.  Passes testsuite.
This commit is contained in:
Larry Doolittle 2009-01-29 14:11:42 -08:00 committed by Stephen Williams
parent 761a15515d
commit 51307c0a3e
2 changed files with 2 additions and 2 deletions

View File

@ -2453,7 +2453,7 @@ NetProc* PCallTask::elaborate_sys(Design*des, NetScope*scope) const
// to annotate, and the user is intending to turn the behavior
// off anyhow, so replace the system task invocation with a no-op.
if (gn_specify_blocks_flag == false
& peek_tail_name(path_) == "$sdf_annotate") {
&& peek_tail_name(path_) == "$sdf_annotate") {
NetBlock*noop = new NetBlock(NetBlock::SEQU, scope);
noop->set_line(*this);

View File

@ -207,7 +207,7 @@ void nexus_ident_delete()
if (vcd_ids == 0) return;
for (idx = 0 ; idx < 256; idx = idx += 1) {
for (idx = 0 ; idx < 256; idx++) {
struct vcd_id_s *cur, *tmp;
for (cur = vcd_ids[idx]; cur; cur = tmp) {
tmp = cur->next;