Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix cppcheck warning and update suppression file

  • Loading branch information...
commit b098e31cc724c50c63caadbabe412257f29814cc 1 parent c104586
@caryr caryr authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.