From: Julian Seward Date: Wed, 8 Sep 2004 23:40:57 +0000 (+0000) Subject: Initialisations to keep gcc -O happy. X-Git-Tag: svn/VALGRIND_3_0_1^2~1094 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a11366bbb149aa4355dde2271d405889563666e3;p=thirdparty%2Fvalgrind.git Initialisations to keep gcc -O happy. git-svn-id: svn://svn.valgrind.org/vex/trunk@240 --- diff --git a/VEX/priv/ir/iropt.c b/VEX/priv/ir/iropt.c index c209590e55..807fcaecee 100644 --- a/VEX/priv/ir/iropt.c +++ b/VEX/priv/ir/iropt.c @@ -884,7 +884,7 @@ static void invalidateOverlaps ( Hash64* h, UInt k_lo, UInt k_hi ) static void redundant_get_removal_BB ( IRBB* bb ) { Hash64* env = newH64(); - UInt key; + UInt key = 0; /* keep gcc -O happy */ Int i; Bool isPut; ULong val; @@ -966,7 +966,7 @@ static void redundant_get_removal_BB ( IRBB* bb ) static void handle_gets_Stmt ( Hash64* env, IRStmt* st ) { - UInt key; + UInt key = 0; /* keep gcc -O happy */ Bool isGet; IRExpr* e; switch (st->tag) { @@ -1039,7 +1039,7 @@ static void redundant_put_removal_BB ( IRBB* bb ) Int i, j; Bool isPut; IRStmt* st; - UInt key; + UInt key = 0; /* keep gcc -O happy */ Hash64* env = newH64(); for (i = bb->stmts_used-1; i >= 0; i--) {