Skip to content

Commit

Permalink
Remove cppcheck warnings in ivl code.
Browse files Browse the repository at this point in the history
This patch removes the new cppcheck warnings in the main (ivl) directory.
  • Loading branch information
caryr authored and steveicarus committed Oct 15, 2011
1 parent 209a78a commit 6184871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netenum.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010 Stephen Williams (steve@icarus.com)
* Copyright (c) 2010-2011 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
Expand Down Expand Up @@ -62,7 +62,7 @@ perm_string netenum_t::find_value(const verinum&val) const
{
perm_string res;
for(netenum_t::iterator cur = names_map_.begin();
cur != names_map_.end(); cur++) {
cur != names_map_.end(); ++ cur) {
if (cur->second == val) {
res = cur->first;
break;
Expand Down
1 change: 1 addition & 0 deletions t-dll.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ bool dll_target::ureduce(const NetUReduce*net)
switch (net->type()) {
case NetUReduce::NONE:
assert(0);
delete obj;
return false;
case NetUReduce::AND:
obj->type = IVL_LPM_RE_AND;
Expand Down

0 comments on commit 6184871

Please sign in to comment.