From: Stephen Dolan Date: Tue, 18 Sep 2012 22:46:23 +0000 (+0100) Subject: Initialise some variables to keep gcc happy. X-Git-Tag: jq-1.1~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71ab537ee924e0490cde43da6e678963618deea0;p=jq Initialise some variables to keep gcc happy. --- diff --git a/compile.c b/compile.c index 719a270..fe50c70 100644 --- a/compile.c +++ b/compile.c @@ -527,7 +527,7 @@ static int compile(struct locfile* locations, struct bytecode* bc, block b) { int nargs = curr->imm.intval; assert(nargs > 0); code[pos++] = (uint16_t)nargs; - int desired_params; + int desired_params = 0; for (int i=0; inext; assert(curr && opcode_describe(curr->op)->flags & OP_IS_CALL_PSEUDO); diff --git a/jv_dtoa.c b/jv_dtoa.c index 2c27c88..b200c46 100644 --- a/jv_dtoa.c +++ b/jv_dtoa.c @@ -2120,7 +2120,7 @@ bigcomp (struct dtoa_context* C, U *rv, const char *s0, BCinfo *bc) { Bigint *b, *d; - int b2, bbits, d2, dd, dig, dsign, i, j, nd, nd0, p2, p5, speccase; + int b2, bbits, d2, dd=0, dig, dsign, i, j, nd, nd0, p2, p5, speccase; dsign = bc->dsign; nd = bc->nd;