suppress gcc's warnings
This commit is contained in:
parent
708af9f00f
commit
a7df867a55
|
@ -195,7 +195,7 @@ codegen(codegen_state *state, pic_value obj, bool tailpos)
|
||||||
switch (pic_type(obj)) {
|
switch (pic_type(obj)) {
|
||||||
case PIC_TT_SYMBOL: {
|
case PIC_TT_SYMBOL: {
|
||||||
codegen_scope *s;
|
codegen_scope *s;
|
||||||
int depth, idx;
|
int depth = -1, idx = -1;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
name = pic_symbol_name(pic, pic_sym(obj));
|
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) {
|
else if (sym == pic->sSETBANG) {
|
||||||
codegen_scope *s;
|
codegen_scope *s;
|
||||||
pic_value var;
|
pic_value var;
|
||||||
int depth, idx;
|
int depth = -1, idx = -1;
|
||||||
|
|
||||||
if (pic_length(pic, obj) != 3) {
|
if (pic_length(pic, obj) != 3) {
|
||||||
pic_error(pic, "syntax error");
|
pic_error(pic, "syntax error");
|
||||||
|
|
|
@ -77,6 +77,8 @@ pic_type_repr(enum pic_tt tt)
|
||||||
case PIC_TT_SYNTAX:
|
case PIC_TT_SYNTAX:
|
||||||
return "syntax";
|
return "syntax";
|
||||||
}
|
}
|
||||||
|
/* logic flaw */
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
pic_value
|
pic_value
|
||||||
|
|
Loading…
Reference in New Issue