From 973023030e7c0ca9814bc60f389bb8d75923edc7 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 8 Apr 2011 00:41:24 +0200 Subject: add -O2 when compiling rt, fix warnings triggered by optimizer --- src/rt/rust_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rt/rust_internal.h') diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h index a1cc8e51..4a1f3e45 100644 --- a/src/rt/rust_internal.h +++ b/src/rt/rust_internal.h @@ -403,7 +403,7 @@ rust_crate_reader void get_uleb(T &out) { out = T(0); for (size_t i = 0; i < sizeof(T) && ok; ++i) { - uint8_t byte; + uint8_t byte = 0; get(byte); out <<= 7; out |= byte & 0x7f; -- cgit v1.2.3