3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 20:16:00 +00:00

reduce set of mainly verbose warnings raised by -Wmaybe-uninitialized and unused variable warnings from release mode builds

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-06-22 20:25:47 -07:00
parent fa6f9b4a37
commit 5b497b6249
44 changed files with 68 additions and 70 deletions

View file

@ -466,7 +466,7 @@ namespace datalog {
//used to save on filter_identical instructions where the check is already done
//by the join operation
unsigned second_tail_arg_ofs;
unsigned second_tail_arg_ofs = 0;
// whether to dealloc the previous result
bool dealloc = true;

View file

@ -109,7 +109,7 @@ namespace datalog {
rule_vector const& rv = *(it->m_value);
bool has_symmetry = false;
bool has_transitivity = false;
unsigned i_symmetry, i_transitivity;
unsigned i_symmetry = 0, i_transitivity = 0;
family_id kind = rm.get_requested_predicate_kind(p);
for (unsigned i = 0; i < rv.size(); ++i) {

View file

@ -277,7 +277,7 @@ namespace datalog {
relation_plugin & relation_manager::get_relation_plugin(family_id kind) {
SASSERT(kind>=0);
SASSERT(kind<m_next_relation_fid);
relation_plugin * res;
relation_plugin * res = 0;
VERIFY(m_kind2plugin.find(kind, res));
return *res;
}

View file

@ -327,8 +327,7 @@ namespace datalog {
key_value key;
key.resize(key_len);
offset_vector * index_entry;
DEBUG_CODE( index_entry = 0; );
offset_vector * index_entry = 0;
bool key_modified = true;
for (; ofs!=after_last; ofs+=t.m_fact_size) {