Skip to content

Commit 912ca77

Browse files
stinospfalcon
authored andcommitted
py: Comment exc_state member from mp_obj_gen_instance_t as it gives trouble
...to some compilers who can't process 2 zero-sized arrays in structs. It's never referenced directly anyway. See disussion on adafruit#568 as well.
1 parent 179977a commit 912ca77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/objgenerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ typedef struct _mp_obj_gen_instance_t {
9090
// Variable-length
9191
mp_obj_t state[0];
9292
// Variable-length, never accessed by name, only as (void*)(state + n_state)
93-
mp_exc_stack_t exc_state[0];
93+
//mp_exc_stack_t exc_state[0];
9494
} mp_obj_gen_instance_t;
9595

9696
void gen_instance_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {

0 commit comments

Comments
 (0)