Fix cppcheck warning and update suppression file

This commit is contained in:
Cary R 2012-12-18 11:53:31 -08:00
parent c104586760
commit b098e31cc7
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
// These are correct and are used to find the base (zero) pin.
thisSubtraction:netlist.h:4347
thisSubtraction:netlist.h:4356
thisSubtraction:netlist.h:4430
thisSubtraction:netlist.h:4439

View File

@ -553,7 +553,7 @@ NetNet* PEIdent::elaborate_lnet_common_(Design*des, NetScope*scope,
// itself.
ivl_assert(*this, member->packed_dims.size() <= 1);
ivl_assert(*this, path_tail.index.size() <= 1);
if (path_tail.index.size() > 0) {
if (! path_tail.index.empty()) {
long tmp_off;
unsigned long tmp_wid;
const index_component_t&tail_sel = path_tail.index.back();