Skip to content
Myr

Fix -Wzero-length-array

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent eb2fc1d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:execute.c+1 added-1 removed
62 unmodified lines
63 struct bytecode* bc; // jq bytecode for callee64 stack_ptr env; // jq stack address of frame to return to65 stack_ptr retdata; // jq stack address to unwind to on RET66 uint16_t* retaddr; // jq bytecode return address67 union frame_entry entries[0]; // nclosures + nlocals67 union frame_entry entries[]; // nclosures + nlocals68};6970static int frame_size(struct bytecode* bc) {71 return sizeof(struct frame) + sizeof(union frame_entry) * (bc->nclosures + bc->nlocals);
1084 unmodified lines