Browse Source

src/core/jobs.c: fix double declaration of variable i

Nathalie Furmento 11 years ago
parent
commit
1fa3d5632d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/core/jobs.c

+ 2 - 3
src/core/jobs.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2014  Université de Bordeaux 1
- * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014  Centre National de la Recherche Scientifique
  * Copyright (C) 2011  Télécom-SudParis
  * Copyright (C) 2011  INRIA
  *
@@ -172,9 +172,9 @@ void _starpu_handle_job_termination(struct _starpu_job *j)
 	/* We release handle reference count */
 	if (task->cl)
 	{
+		int i;
 #ifdef STARPU_USE_SC_HYPERVISOR
 		int workerid = starpu_worker_get_id();
-		int i;
 		for(i = 0; i < task->cl->nbuffers; i++)
 		{
 			starpu_data_handle_t handle = STARPU_TASK_GET_HANDLE(task, i);
@@ -183,7 +183,6 @@ void _starpu_handle_job_termination(struct _starpu_job *j)
 		}
 #endif //STARPU_USE_SC_HYPERVISOR
 
-		unsigned i;
 		for (i=0; i<task->cl->nbuffers; i++)
 		{
 			starpu_data_handle_t handle = STARPU_TASK_GET_HANDLE(task, i);