Browse files

Fix cppcheck warning and update suppression file

  • Loading branch information...
1 parent c104586 commit b098e31cc724c50c63caadbabe412257f29814cc @caryr caryr committed Dec 18, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 cppcheck.sup
  2. +1 −1 elab_net.cc
View
4 cppcheck.sup
@@ -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
2 elab_net.cc
@@ -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();

0 comments on commit b098e31

Please sign in to comment.