Parcourir la source

dmda: remove occurrences of __attribute__((unused)).

StarPU should use STARPU_ATTRIBUTE_UNUSED. Here, we use the well-known "(void)
foo" idiom, since we __know__ that we will not use these parameters. Also,
rename "_policy" to "policy".
Cyril Roelandt il y a 12 ans
Parent
commit
ab97fb2d3f
1 fichiers modifiés avec 8 ajouts et 4 suppressions
  1. 8 4
      src/sched_policies/deque_modeling_policy_data_aware.c

+ 8 - 4
src/sched_policies/deque_modeling_policy_data_aware.c

@@ -645,8 +645,10 @@ static int dmda_push_task(struct starpu_task *task)
 }
 
 static void initialize_dmda_policy(struct starpu_machine_topology *topology,
-	 __attribute__ ((unused)) struct starpu_sched_policy *_policy)
+				   struct starpu_sched_policy *policy)
 {
+	(void) policy;
+
 	nworkers = topology->nworkers;
 
 	const char *strval_alpha = getenv("STARPU_SCHED_ALPHA");
@@ -687,9 +689,9 @@ static void initialize_dmda_policy(struct starpu_machine_topology *topology,
 }
 
 static void initialize_dmda_sorted_policy(struct starpu_machine_topology *topology,
-					struct starpu_sched_policy *_policy)
+					struct starpu_sched_policy *policy)
 {
-	initialize_dmda_policy(topology, _policy);
+	initialize_dmda_policy(topology, policy);
 
 	/* The application may use any integer */
 	starpu_sched_set_min_priority(INT_MIN);
@@ -697,8 +699,10 @@ static void initialize_dmda_sorted_policy(struct starpu_machine_topology *topolo
 }
 
 static void deinitialize_dmda_policy(struct starpu_machine_topology *topology,
-	 __attribute__ ((unused)) struct starpu_sched_policy *_policy)
+				     struct starpu_sched_policy *policy)
 {
+	(void) policy;
+
 	unsigned workerid;
 	for (workerid = 0; workerid < topology->nworkers; workerid++)
 	{