Remove cppcheck warnings in ivl code.

This patch removes the new cppcheck warnings in the main (ivl) directory.
This commit is contained in:
Cary R 2011-10-12 19:03:09 -07:00 committed by Stephen Williams
parent 209a78a439
commit 6184871242
2 changed files with 3 additions and 2 deletions

View File

@ -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 * This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU * and/or modify it in source code form under the terms of the GNU
@ -62,7 +62,7 @@ perm_string netenum_t::find_value(const verinum&val) const
{ {
perm_string res; perm_string res;
for(netenum_t::iterator cur = names_map_.begin(); for(netenum_t::iterator cur = names_map_.begin();
cur != names_map_.end(); cur++) { cur != names_map_.end(); ++ cur) {
if (cur->second == val) { if (cur->second == val) {
res = cur->first; res = cur->first;
break; break;

View File

@ -1045,6 +1045,7 @@ bool dll_target::ureduce(const NetUReduce*net)
switch (net->type()) { switch (net->type()) {
case NetUReduce::NONE: case NetUReduce::NONE:
assert(0); assert(0);
delete obj;
return false; return false;
case NetUReduce::AND: case NetUReduce::AND:
obj->type = IVL_LPM_RE_AND; obj->type = IVL_LPM_RE_AND;