diff --git a/src/codegen.c b/src/codegen.c index f6cfbc42..a368ee60 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -195,7 +195,7 @@ codegen(codegen_state *state, pic_value obj, bool tailpos) switch (pic_type(obj)) { case PIC_TT_SYMBOL: { codegen_scope *s; - int depth, idx; + int depth = -1, idx = -1; const char *name; name = pic_symbol_name(pic, pic_sym(obj)); @@ -362,7 +362,7 @@ codegen(codegen_state *state, pic_value obj, bool tailpos) else if (sym == pic->sSETBANG) { codegen_scope *s; pic_value var; - int depth, idx; + int depth = -1, idx = -1; if (pic_length(pic, obj) != 3) { pic_error(pic, "syntax error"); diff --git a/src/value.c b/src/value.c index 3c12d902..9922cd00 100644 --- a/src/value.c +++ b/src/value.c @@ -77,6 +77,8 @@ pic_type_repr(enum pic_tt tt) case PIC_TT_SYNTAX: return "syntax"; } + /* logic flaw */ + abort(); } pic_value