diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-03-19 08:48:39 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-03-19 08:48:39 -0700 |
commit | 43092f063f231482797fa9c240a4a5fe1223d55b (patch) | |
tree | e4913badfcdb1d3de301ad85f8cd614a95de5370 | |
parent | e03f725ef27f696e316595999f3dc94ad5f6d946 (diff) | |
download | yosys-43092f063f231482797fa9c240a4a5fe1223d55b.tar.gz yosys-43092f063f231482797fa9c240a4a5fe1223d55b.tar.bz2 yosys-43092f063f231482797fa9c240a4a5fe1223d55b.zip |
Fix NDEBUG warnings
-rw-r--r-- | frontends/aiger/aigerparse.cc | 2 | ||||
-rw-r--r-- | frontends/ast/simplify.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc index a42569301..50c2a3ce6 100644 --- a/frontends/aiger/aigerparse.cc +++ b/frontends/aiger/aigerparse.cc @@ -444,7 +444,7 @@ void AigerReader::parse_xaiger() } } 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); log_debug("flopNum = %u\n", flopNum); log_assert(dataSize == (flopNum+1) * sizeof(uint32_t)); diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 2fbadcdad..743c7e18f 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -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)) did_something = true; 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); while (node->simplify(true, false, false, 1, -1, false, in_param)) did_something = true; |