gcc complains that he can't assure if switch-enum is complete
This commit is contained in:
parent
7bfe165a73
commit
ab411cc298
|
@ -199,6 +199,8 @@ pic_type(pic_value v)
|
|||
return PIC_TT_EOF;
|
||||
case PIC_VTYPE_HEAP:
|
||||
return ((struct pic_object *)pic_ptr(v))->tt;
|
||||
default:
|
||||
return -1; /* logic flaw */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -554,6 +554,7 @@ analyze_node(analyze_state *state, pic_value obj, bool tailpos)
|
|||
case PIC_TT_IREP:
|
||||
pic_error(pic, "invalid expression given");
|
||||
}
|
||||
pic_abort(pic, "logic flaw");
|
||||
}
|
||||
|
||||
static pic_value
|
||||
|
|
Loading…
Reference in New Issue