diff --git a/src/compiler/treeifier/ast/parsers/field.cc b/src/compiler/treeifier/ast/parsers/field.cc index d1f335f..e454884 100644 --- a/src/compiler/treeifier/ast/parsers/field.cc +++ b/src/compiler/treeifier/ast/parsers/field.cc @@ -7,7 +7,7 @@ bool ast::parse_field(ast_ctx_t &ctx, size_t &res_i, map_t &out) { if (!h.parse(parse_identifier, out["name"].map({}))) return false; - bool type, defval; + bool type = false, defval = false; h.throw_ended("Expected a colon or an equals sign."); diff --git a/src/compiler/treeifier/ast/parsers/func.cc b/src/compiler/treeifier/ast/parsers/func.cc index ca588a3..1931aa8 100644 --- a/src/compiler/treeifier/ast/parsers/func.cc +++ b/src/compiler/treeifier/ast/parsers/func.cc @@ -7,7 +7,7 @@ static bool parse_arg(ast_ctx_t &ctx, size_t &res_i, map_t &out) { if (!h.parse(parse_identifier, out["name"].map({}))) return false; - bool type, defval; + bool type = false, defval = false; h.throw_ended("Expected a colon or an equals sign.");