aboutsummaryrefslogtreecommitdiff
path: root/src/rt/util
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-04-08 00:41:24 +0200
committerMarijn Haverbeke <[email protected]>2011-04-08 00:41:52 +0200
commit973023030e7c0ca9814bc60f389bb8d75923edc7 (patch)
treec4e4b24902b899a1f9815ca30edaaf0d6a2f8915 /src/rt/util
parentUpdated test to use 'check' rather than just logging results. (diff)
downloadrust-973023030e7c0ca9814bc60f389bb8d75923edc7.tar.xz
rust-973023030e7c0ca9814bc60f389bb8d75923edc7.zip
add -O2 when compiling rt, fix warnings triggered by optimizer
Diffstat (limited to 'src/rt/util')
-rw-r--r--src/rt/util/indexed_list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/util/indexed_list.h b/src/rt/util/indexed_list.h
index df887122..173e9ede 100644
--- a/src/rt/util/indexed_list.h
+++ b/src/rt/util/indexed_list.h
@@ -59,7 +59,7 @@ indexed_list<T>::remove(T *value) {
assert (value->list_index >= 0);
assert (value->list_index < (int32_t)list.size());
int32_t removeIndex = value->list_index;
- T *last;
+ T *last = 0;
list.pop(&last);
if (last->list_index == removeIndex) {
last->list_index = -1;