aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_task.cpp
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/rust_task.cpp
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/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index 4f7bbda6..c2fefef0 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -175,7 +175,7 @@ rust_task::start(uintptr_t exit_task_glue,
*spp-- = (uintptr_t) 0x0; // output
*spp-- = (uintptr_t) 0x0; // retpc
- uintptr_t exit_task_frame_base;
+ uintptr_t exit_task_frame_base = 0;
if (spawnee_abi == ABI_X86_RUSTBOOT_CDECL) {
for (size_t j = 0; j < n_callee_saves; ++j) {
@@ -454,7 +454,7 @@ rust_task::notify_tasks_waiting_to_join() {
while (tasks_waiting_to_join.is_empty() == false) {
log(rust_log::TASK, "notify_tasks_waiting_to_join: %d",
tasks_waiting_to_join.size());
- maybe_proxy<rust_task> *waiting_task;
+ maybe_proxy<rust_task> *waiting_task = 0;
tasks_waiting_to_join.pop(&waiting_task);
if (waiting_task->is_proxy()) {
notify_message::send(notify_message::WAKEUP, "wakeup",