mirror of https://github.com/YosysHQ/yosys.git
Fix NDEBUG warnings
This commit is contained in:
parent
e03f725ef2
commit
43092f063f
|
@ -444,7 +444,7 @@ void AigerReader::parse_xaiger()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (c == 'r') {
|
else if (c == 'r') {
|
||||||
uint32_t dataSize = parse_xaiger_literal(f);
|
uint32_t dataSize YS_ATTRIBUTE(unused) = parse_xaiger_literal(f);
|
||||||
flopNum = parse_xaiger_literal(f);
|
flopNum = parse_xaiger_literal(f);
|
||||||
log_debug("flopNum = %u\n", flopNum);
|
log_debug("flopNum = %u\n", flopNum);
|
||||||
log_assert(dataSize == (flopNum+1) * sizeof(uint32_t));
|
log_assert(dataSize == (flopNum+1) * sizeof(uint32_t));
|
||||||
|
|
|
@ -432,7 +432,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
|
||||||
while (node->simplify(true, false, false, 1, -1, false, node->type == AST_PARAMETER || node->type == AST_LOCALPARAM))
|
while (node->simplify(true, false, false, 1, -1, false, node->type == AST_PARAMETER || node->type == AST_LOCALPARAM))
|
||||||
did_something = true;
|
did_something = true;
|
||||||
if (node->type == AST_ENUM) {
|
if (node->type == AST_ENUM) {
|
||||||
for (auto enode : node->children){
|
for (auto enode YS_ATTRIBUTE(unused) : node->children){
|
||||||
log_assert(enode->type==AST_ENUM_ITEM);
|
log_assert(enode->type==AST_ENUM_ITEM);
|
||||||
while (node->simplify(true, false, false, 1, -1, false, in_param))
|
while (node->simplify(true, false, false, 1, -1, false, in_param))
|
||||||
did_something = true;
|
did_something = true;
|
||||||
|
|
Loading…
Reference in New Issue