Skip to content

Commit

Permalink
Update parray.h
Browse files Browse the repository at this point in the history
deal with compiler warnings by initializing m_elem
  • Loading branch information
NikolajBjorner committed Jan 14, 2025
1 parent c013365 commit 3c5b8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/parray.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class parray_manager {
unsigned size() const { SASSERT(kind() == ROOT); return m_size; }
cell * next() const { SASSERT(kind() != ROOT); return m_next; }
value const & elem() const { SASSERT(kind() == SET || kind() == PUSH_BACK); return m_elem; }
cell(enum ckind k):m_ref_count(1), m_kind(k), m_size(0), m_values(nullptr) {}
cell(enum ckind k):m_ref_count(1), m_kind(k), m_size(0), m_elem(), m_values(nullptr) {}
};

value_manager & m_vmanager;
Expand Down

0 comments on commit 3c5b8bd

Please sign in to comment.