Fix some cppcheck warnings.
This commit is contained in:
parent
853512868b
commit
1cfbd2db63
|
|
@ -1,3 +1,3 @@
|
||||||
// These are correct and are used to find the base (zero) pin.
|
// These are correct and are used to find the base (zero) pin.
|
||||||
thisSubtraction:netlist.h:4863
|
thisSubtraction:netlist.h:4938
|
||||||
thisSubtraction:netlist.h:4872
|
thisSubtraction:netlist.h:4947
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000-2013 Stephen Williams (steve@icarus.com)
|
* Copyright (c) 2000-2014 Stephen Williams (steve@icarus.com)
|
||||||
* Copyright CERN 2012-2013 / Stephen Williams (steve@icarus.com)
|
* Copyright CERN 2012-2013 / 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
|
||||||
|
|
@ -421,7 +421,7 @@ NetAssign_* PEIdent::elaborate_lval_method_class_member_(Design*des,
|
||||||
}
|
}
|
||||||
|
|
||||||
NetExpr*canon_index = 0;
|
NetExpr*canon_index = 0;
|
||||||
if (name_comp.index.size() > 0) {
|
if (! name_comp.index.empty()) {
|
||||||
ivl_type_t property_type = class_type->get_prop_type(pidx);
|
ivl_type_t property_type = class_type->get_prop_type(pidx);
|
||||||
|
|
||||||
if (const netsarray_t* stype = dynamic_cast<const netsarray_t*> (property_type)) {
|
if (const netsarray_t* stype = dynamic_cast<const netsarray_t*> (property_type)) {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2012-2013 Stephen Williams (steve@icarus.com)
|
* Copyright (c) 2012-2014 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
|
||||||
|
|
@ -244,7 +244,7 @@ void vvp_queue_string::set_word(unsigned adr, const string&value)
|
||||||
|
|
||||||
list<string>::iterator cur = array_.begin();
|
list<string>::iterator cur = array_.begin();
|
||||||
while (adr > 0) {
|
while (adr > 0) {
|
||||||
cur ++;
|
++ cur;
|
||||||
adr -= 1;
|
adr -= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -260,7 +260,7 @@ void vvp_queue_string::get_word(unsigned adr, string&value)
|
||||||
|
|
||||||
list<string>::const_iterator cur = array_.begin();
|
list<string>::const_iterator cur = array_.begin();
|
||||||
while (adr > 0) {
|
while (adr > 0) {
|
||||||
cur ++;
|
++ cur;
|
||||||
adr -= 1;
|
adr -= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -293,7 +293,7 @@ void vvp_queue_vec4::set_word(unsigned adr, const vvp_vector4_t&value)
|
||||||
|
|
||||||
list<vvp_vector4_t>::iterator cur = array_.begin();
|
list<vvp_vector4_t>::iterator cur = array_.begin();
|
||||||
while (adr > 0) {
|
while (adr > 0) {
|
||||||
cur ++;
|
++ cur;
|
||||||
adr -= 1;
|
adr -= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -309,7 +309,7 @@ void vvp_queue_vec4::get_word(unsigned adr, vvp_vector4_t&value)
|
||||||
|
|
||||||
list<vvp_vector4_t>::const_iterator cur = array_.begin();
|
list<vvp_vector4_t>::const_iterator cur = array_.begin();
|
||||||
while (adr > 0) {
|
while (adr > 0) {
|
||||||
cur ++;
|
++ cur;
|
||||||
adr -= 1;
|
adr -= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue