From: David Tolnay Date: Sun, 16 Aug 2015 16:11:23 +0000 (-0700) Subject: Fix -Wzero-length-array X-Git-Tag: jq-1.6rc1~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec7c3cf9a7c86f7d68ec88092a8cdbb21abc4afc;p=jq Fix -Wzero-length-array --- diff --git a/execute.c b/execute.c index 6a94a44..1a84f4c 100644 --- a/execute.c +++ b/execute.c @@ -64,7 +64,7 @@ struct frame { stack_ptr env; // jq stack address of frame to return to stack_ptr retdata; // jq stack address to unwind to on RET uint16_t* retaddr; // jq bytecode return address - union frame_entry entries[0]; // nclosures + nlocals + union frame_entry entries[]; // nclosures + nlocals }; static int frame_size(struct bytecode* bc) {