summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-09-18 23:46:23 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2012-09-18 23:46:23 +0100
commit71ab537ee924e0490cde43da6e678963618deea0 (patch)
tree8dd96d633a02aa6af5b054676953738de094037a
parent134b062be7cf2b62d0e69772836e6312fd9e60d5 (diff)
Initialise some variables to keep gcc happy.
-rw-r--r--compile.c2
-rw-r--r--jv_dtoa.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index 719a2706..fe50c70a 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; i<nargs; i++) {
curr = curr->next;
assert(curr && opcode_describe(curr->op)->flags & OP_IS_CALL_PSEUDO);
diff --git a/jv_dtoa.c b/jv_dtoa.c
index 2c27c880..b200c462 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;