Pārlūkot izejas kodu

src: remove unused variables and mark some parameters as potentially unused

Nathalie Furmento 11 gadi atpakaļ
vecāks
revīzija
0ce84fd586
3 mainītis faili ar 8 papildinājumiem un 12 dzēšanām
  1. 2 4
      src/core/sched_ctx.c
  2. 2 4
      src/core/sched_policy.c
  3. 4 4
      src/core/topology.c

+ 2 - 4
src/core/sched_ctx.c

@@ -67,8 +67,7 @@ static void _starpu_update_workers_with_ctx(int *workerids, int nworkers, int sc
 {
 	int i;
 	struct _starpu_worker *worker = NULL;
- 	struct _starpu_worker *curr_worker = _starpu_get_local_worker_key();
-	
+
 	for(i = 0; i < nworkers; i++)
 	{
 		worker = _starpu_get_worker_struct(workerids[i]);
@@ -85,8 +84,7 @@ static void _starpu_update_workers_without_ctx(int *workerids, int nworkers, int
 {
 	int i;
 	struct _starpu_worker *worker = NULL;
- 	struct _starpu_worker *curr_worker = _starpu_get_local_worker_key();
-	
+
 	for(i = 0; i < nworkers; i++)
 	{
 		worker = _starpu_get_worker_struct(workerids[i]);

+ 2 - 4
src/core/sched_policy.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2013  Université de Bordeaux 1
- * Copyright (C) 2010-2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010-2014  Centre National de la Recherche Scientifique
  * Copyright (C) 2011  INRIA
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -567,9 +567,7 @@ struct starpu_task *_starpu_create_conversion_task_for_arch(starpu_data_handle_t
 
 static
 struct _starpu_sched_ctx* _get_next_sched_ctx_to_pop_into(struct _starpu_worker *worker)
-{	
-	struct _starpu_sched_ctx *sched_ctx, *good_sched_ctx = NULL;
-	unsigned smallest_counter =  worker->nsched_ctxs;
+{
 	struct _starpu_sched_ctx_list *l = NULL;
 	unsigned are_2_priorities = 0;
 	for (l = worker->sched_ctx_list; l; l = l->next)

+ 4 - 4
src/core/topology.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2013  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  INRIA
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -713,7 +713,7 @@ _starpu_deinit_mp_config (struct _starpu_machine_config *config)
 #endif
 
 static int
-_starpu_init_machine_config (struct _starpu_machine_config *config, int no_mp_config)
+_starpu_init_machine_config (struct _starpu_machine_config *config, int no_mp_config STARPU_ATTRIBUTE_UNUSED)
 {
 	int i;
 	for (i = 0; i < STARPU_NMAXWORKERS; i++)
@@ -1109,7 +1109,7 @@ _starpu_bind_thread_on_cpus (
 
 
 static void
-_starpu_init_workers_binding (struct _starpu_machine_config *config, int no_mp_config)
+_starpu_init_workers_binding (struct _starpu_machine_config *config, int no_mp_config STARPU_ATTRIBUTE_UNUSED)
 {
 	/* launch one thread per CPU */
 	unsigned ram_memory_node;
@@ -1314,7 +1314,7 @@ int
 _starpu_build_topology (struct _starpu_machine_config *config, int no_mp_config)
 {
 	int ret;
-	int i;
+	unsigned i;
 
 	ret = _starpu_init_machine_config(config, no_mp_config);
 	if (ret)