Skip to content

Commit 86b9718

Browse files
fix build warnings
1 parent 551cc53 commit 86b9718

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

src/muz/fp/datalog_parser.cpp

+9-17
Original file line numberDiff line numberDiff line change
@@ -228,20 +228,20 @@ class reserved_symbols {
228228

229229

230230
class dlexer {
231-
std::istream* m_input;
232-
char_reader* m_reader;
233-
char m_prev_char;
234-
char m_curr_char;
235-
int m_line;
236-
int m_pos;
237-
int m_tok_pos;
231+
std::istream* m_input = nullptr;
232+
char_reader* m_reader = nullptr;
233+
int m_prev_char = 0;
234+
int m_curr_char = 0;
235+
int m_line = 1;
236+
int m_pos = 0;
237+
int m_tok_pos = 0;
238238
string_buffer<> m_buffer;
239239
reserved_symbols m_reserved_symbols;
240240

241241
public:
242242
//when parsing domains, we want '.' character to be allowed in IDs, but elsewhere
243243
//we don't (because of the "y." in rules like "P(x,y):-x=y.")
244-
bool m_parsing_domains;
244+
bool m_parsing_domains = false;
245245

246246
bool eos() const {
247247
return m_curr_char == EOF;
@@ -267,15 +267,7 @@ class dlexer {
267267
next();
268268
}
269269

270-
dlexer():
271-
m_input(nullptr),
272-
m_reader(nullptr),
273-
m_prev_char(0),
274-
m_curr_char(0),
275-
m_line(1),
276-
m_pos(0),
277-
m_tok_pos(0),
278-
m_parsing_domains(false) {
270+
dlexer() {
279271
}
280272

281273
void set_stream(std::istream* s, char_reader* r) {

src/smt/theory_str.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -4089,6 +4089,7 @@ namespace smt {
40894089
expr_ref_vector arrangement_disjunction(mgr);
40904090

40914091
int pos = 1;
4092+
(void)pos;
40924093
for (unsigned int i = 0; i <= strValue.length(); i++) {
40934094
zstring part1Str = strValue.extract(0, i);
40944095
zstring part2Str = strValue.extract(i, strValue.length() - i);
@@ -4522,6 +4523,7 @@ namespace smt {
45224523

45234524
expr_ref_vector arrangement_disjunction(mgr);
45244525
int pos = 1;
4526+
(void)pos;
45254527

45264528
if (!avoidLoopCut || !has_self_cut(m, y)) {
45274529
expr_ref_vector and_item(mgr);

0 commit comments

Comments
 (0)