From 36f62cbb8da6c438db4199c4afe6ff3f02a89085 Mon Sep 17 00:00:00 2001 From: tchernobog Date: Fri, 30 Jun 2006 22:45:01 +0000 Subject: [PATCH] - Fix compilation error in switch cross-variable initialization git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@677 3ecf2c5c-341e-0410-92b4-d18e462d057c --- src/backend/dynamic_process.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/dynamic_process.cc b/src/backend/dynamic_process.cc index 6f99817..6ef88c6 100644 --- a/src/backend/dynamic_process.cc +++ b/src/backend/dynamic_process.cc @@ -84,6 +84,7 @@ DynamicProcess::get_state() const // TODO Is this OK? Must be tested... + int thread_starts_at; switch(thread_state) { case state_running: // (a) @@ -96,7 +97,7 @@ DynamicProcess::get_state() const continue; case state_future: // (d) result = state_future; - int thread_starts_at = (*it)->get_arrival_time(); + thread_starts_at = (*it)->get_arrival_time(); if(next_thread_starts_at == uninitialized) // (d1) next_thread_starts_at = thread_starts_at; else