Kaynağa Gözat

fix warnings

Samuel Thibault 9 yıl önce
ebeveyn
işleme
abb3c9b178

+ 1 - 1
examples/filters/fmatrix.c

@@ -119,7 +119,7 @@ int main(int argc, char **argv)
                 for(i=0 ; i<NX ; i++)
 		{
                         FPRINTF(stderr, "%4d ", matrix[(j*NX)+i]);
-			if (matrix[(j*NX)+i] != n*12)
+			if (matrix[(j*NX)+i] != (int) n*12)
 			{
 				FPRINTF(stderr, "Incorrect result %4d != %4d", matrix[(j*NX)+i], n*12);
 				ret=1;

+ 2 - 2
examples/worker_collections/worker_tree_example.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2015  Université de Bordeaux
+ * Copyright (C) 2010-2016  Université de Bordeaux
  * Copyright (C) 2010-2015  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -84,7 +84,7 @@ int main()
 //		FPRINTF(stderr, "pu = %d out of %d workers \n", pu, co->nworkers);
 	}
 
-	int six = 6;
+	unsigned six = 6;
 	if (six < ncpus)
 		six = ncpus/2;
 	for(i = 0; i < six; i++)

+ 1 - 1
src/core/workers.c

@@ -1840,7 +1840,7 @@ void starpu_worker_get_sched_condition(int workerid, starpu_pthread_mutex_t **sc
 	*sched_mutex = &_starpu_config.workers[workerid].sched_mutex;
 }
 
-int starpu_wakeup_worker_locked(int workerid, starpu_pthread_cond_t *cond, starpu_pthread_mutex_t *mutex)
+int starpu_wakeup_worker_locked(int workerid, starpu_pthread_cond_t *cond, starpu_pthread_mutex_t *mutex STARPU_ATTRIBUTE_UNUSED)
 {
 #ifdef STARPU_SIMGRID
 	starpu_pthread_queue_broadcast(&_starpu_simgrid_task_queue[workerid]);

+ 1 - 1
src/datawizard/copy_driver.c

@@ -483,7 +483,7 @@ int STARPU_ATTRIBUTE_WARN_UNUSED_RESULT _starpu_driver_copy_data_1_to_1(starpu_d
 									unsigned donotread,
 									struct _starpu_data_request *req,
 									unsigned may_alloc,
-									unsigned prefetch)
+									unsigned prefetch STARPU_ATTRIBUTE_UNUSED)
 {
 	if (!donotread)
 	{