mirror of
https://github.com/Z3Prover/z3
synced 2026-02-09 18:40:51 +00:00
Merge pull request #8509 from Z3Prover/copilot/fix-build-warnings
Fix compiler warnings: unused variables, uninitialized variable, and false positive array bounds
This commit is contained in:
commit
8978f1549b
5 changed files with 11 additions and 5 deletions
|
|
@ -356,7 +356,7 @@ namespace smt {
|
|||
m_context.m_stats.m_num_del_dyn_ack++;
|
||||
app_pair p((app*)nullptr,(app*)nullptr);
|
||||
if (m_clause2app_pair.find(cls, p)) {
|
||||
auto [a1, a2] = p;
|
||||
[[maybe_unused]] auto [a1, a2] = p;
|
||||
SASSERT(a1 && a2);
|
||||
m_instantiated.erase(p);
|
||||
m_clause2app_pair.erase(cls);
|
||||
|
|
@ -365,7 +365,7 @@ namespace smt {
|
|||
}
|
||||
app_triple tr(0,0,0);
|
||||
if (m_triple.m_clause2apps.find(cls, tr)) {
|
||||
auto [a1, a2, a3] = tr;
|
||||
[[maybe_unused]] auto [a1, a2, a3] = tr;
|
||||
SASSERT(a1 && a2 && a3);
|
||||
m_triple.m_instantiated.erase(tr);
|
||||
m_triple.m_clause2apps.erase(cls);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue