Browse Source

fixes for unused attributes and other minor warnings

Nathalie Furmento 7 years ago
parent
commit
5e6a2a33ea
100 changed files with 548 additions and 360 deletions
  1. 2 2
      doc/doxygen/chapters/310_data_management.doxy
  2. 2 2
      examples/audio/starpu_audio_processing.c
  3. 4 4
      examples/axpy/axpy.c
  4. 2 2
      examples/basic_examples/block.c
  5. 2 2
      examples/basic_examples/dynamic_handles.c
  6. 3 2
      examples/basic_examples/hello_world.c
  7. 3 3
      examples/basic_examples/mult.c
  8. 2 0
      examples/basic_examples/multiformat.c
  9. 3 0
      examples/basic_examples/multiformat_conversion_codelets.c
  10. 1 1
      examples/basic_examples/topology.c
  11. 3 3
      examples/basic_examples/variable.c
  12. 2 2
      examples/basic_examples/variable_kernels.cu
  13. 3 2
      examples/basic_examples/variable_kernels_cpu.c
  14. 3 1
      examples/basic_examples/variable_kernels_opencl.c
  15. 2 2
      examples/basic_examples/vector_scal.c
  16. 3 3
      examples/binary/binary.c
  17. 6 3
      examples/callback/callback.c
  18. 4 3
      examples/callback/prologue.c
  19. 32 20
      examples/cg/cg_kernels.c
  20. 1 1
      examples/cholesky/cholesky.h
  21. 2 2
      examples/cholesky/cholesky_grain_tag.c
  22. 3 2
      examples/cholesky/cholesky_implicit.c
  23. 6 3
      examples/cholesky/cholesky_kernels.c
  24. 12 0
      examples/cholesky/cholesky_models.c
  25. 5 4
      examples/cholesky/cholesky_tile_tag.c
  26. 2 0
      examples/filters/custom_mf/custom_conversion_codelets.c
  27. 14 1
      examples/filters/custom_mf/custom_interface.c
  28. 2 0
      examples/filters/custom_mf/custom_mf_filter.c
  29. 2 2
      examples/filters/fblock.c
  30. 2 2
      examples/filters/fmatrix.c
  31. 6 3
      examples/filters/fmultiple_manual.c
  32. 3 2
      examples/filters/fmultiple_submit.c
  33. 3 2
      examples/filters/fmultiple_submit_readonly.c
  34. 2 2
      examples/filters/fvector.c
  35. 4 2
      examples/filters/shadow.c
  36. 4 2
      examples/filters/shadow2d.c
  37. 4 2
      examples/filters/shadow3d.c
  38. 2 1
      examples/fortran90/marshalling.c
  39. 1 1
      examples/heat/dw_factolu.c
  40. 2 3
      examples/heat/dw_factolu.h
  41. 8 4
      examples/heat/dw_factolu_kernels.c
  42. 3 3
      examples/heat/dw_sparse_cg.h
  43. 6 3
      examples/heat/dw_sparse_cg_kernels.c
  44. 2 2
      examples/heat/heat.c
  45. 2 2
      examples/heat/heat.h
  46. 2 2
      examples/heat/heat_display.c
  47. 22 1
      examples/heat/lu_kernels_model.c
  48. 5 5
      examples/incrementer/incrementer.c
  49. 1 0
      examples/incrementer/incrementer_kernels_opencl.c
  50. 20 18
      examples/interface/complex.c
  51. 2 2
      examples/interface/complex_kernels.cu
  52. 5 1
      examples/lu/lu_example.c
  53. 2 3
      examples/lu/xlu.h
  54. 4 3
      examples/lu/xlu_implicit_pivot.c
  55. 26 24
      examples/lu/xlu_kernels.c
  56. 4 3
      examples/lu/xlu_pivot.c
  57. 4 4
      examples/matvecmult/matvecmult.c
  58. 1 1
      examples/mlr/mlr.c
  59. 5 3
      examples/mult/xgemm.c
  60. 2 2
      examples/openmp/vector_scal_omp.c
  61. 3 0
      examples/pi/pi.c
  62. 13 4
      examples/pi/pi_redux.c
  63. 6 2
      examples/pipeline/pipeline.c
  64. 2 1
      examples/ppm_downscaler/yuv_downscaler.c
  65. 4 3
      examples/profiling/profiling.c
  66. 13 3
      examples/reductions/dot_product.c
  67. 4 1
      examples/reductions/minmax_reduction.c
  68. 5 3
      examples/sched_ctx/dummy_sched_with_ctx.c
  69. 3 3
      examples/sched_ctx/gpu_partition.c
  70. 3 2
      examples/sched_ctx/nested_sched_ctxs.c
  71. 1 1
      examples/sched_ctx/parallel_code.c
  72. 5 2
      examples/sched_ctx/parallel_tasks_reuse_handle.c
  73. 4 4
      examples/sched_ctx/parallel_tasks_with_cluster_api.c
  74. 2 2
      examples/sched_ctx/prio.c
  75. 11 5
      examples/sched_ctx/sched_ctx.c
  76. 4 3
      examples/sched_ctx/sched_ctx_without_sched_policy.c
  77. 4 3
      examples/sched_ctx/sched_ctx_without_sched_policy_awake.c
  78. 3 2
      examples/sched_ctx/two_cpu_contexts.c
  79. 1 3
      examples/sched_ctx_utils/sched_ctx_utils.c
  80. 1 1
      examples/sched_ctx_utils/sched_ctx_utils.h
  81. 5 3
      examples/scheduler/dummy_sched.c
  82. 13 1
      examples/scheduler/heteroprio_test.c
  83. 2 2
      examples/spmd/vector_scal_spmd.c
  84. 3 4
      examples/spmv/dw_block_spmv.c
  85. 1 1
      examples/spmv/dw_block_spmv_kernels.c
  86. 1 0
      examples/spmv/spmv.c
  87. 4 2
      examples/spmv/spmv_kernels.c
  88. 87 86
      examples/stencil/implicit-stencil-kernels.c
  89. 4 4
      examples/stencil/implicit-stencil-tasks.c
  90. 1 0
      examples/stencil/life.c
  91. 6 6
      examples/stencil/stencil-kernels.c
  92. 7 4
      examples/stencil/stencil-tasks.c
  93. 1 1
      examples/stencil/stencil.h
  94. 7 5
      examples/tag_example/tag_example.c
  95. 5 3
      examples/tag_example/tag_example2.c
  96. 5 3
      examples/tag_example/tag_example3.c
  97. 4 2
      examples/tag_example/tag_example4.c
  98. 5 3
      examples/tag_example/tag_restartable.c
  99. 5 2
      examples/top/hello_world_top.c
  100. 0 0
      include/starpu_sched_component.h

+ 2 - 2
doc/doxygen/chapters/310_data_management.doxy

@@ -412,7 +412,7 @@ When we want to switch to the vertical slice view, all we need to do is bring
 coherency between them by running an empty task on the home node of the data:
 
 \code{.c}
-void empty(void *buffers[] STARPU_ATTRIBUTE_UNUSED, void *cl_arg STARPU_ATTRIBUTE_UNUSED)
+void empty(void *buffers[], void *cl_arg)
 { }
 struct starpu_codelet cl_switch =
 {
@@ -822,7 +822,7 @@ starpu_task_insert(&cl_display, STARPU_R, handle1, 0);
 and used by codelets.
 
 \code{.c}
-void display_complex_codelet(void *descr[], __attribute__ ((unused)) void *_args)
+void display_complex_codelet(void *descr[], void *_args)
 {
         int nx = STARPU_COMPLEX_GET_NX(descr[0]);
         double *real = STARPU_COMPLEX_GET_REAL(descr[0]);

+ 2 - 2
examples/audio/starpu_audio_processing.c

@@ -170,7 +170,7 @@ typedef struct
 static fft_plan_cache plans[STARPU_NMAXWORKERS];
 
 #ifdef STARPU_USE_CUDA
-static void band_filter_kernel_gpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+static void band_filter_kernel_gpu(void *descr[], void *arg)
 {
 	cufftResult cures;
 
@@ -225,7 +225,7 @@ static void band_filter_kernel_gpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *
 
 static starpu_pthread_mutex_t fftw_mutex = PTHREAD_MUTEX_INITIALIZER;
 
-static void band_filter_kernel_cpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+static void band_filter_kernel_cpu(void *descr[], void *arg)
 {
 	float *localA = (float *)STARPU_VECTOR_GET_PTR(descr[0]);
 

+ 4 - 4
examples/axpy/axpy.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2009-2015  Université de Bordeaux
  * Copyright (C) 2010  Mehdi Juhoor <mjuhoor@gmail.com>
- * Copyright (C) 2010, 2011, 2012, 2013, 2015  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -52,7 +52,7 @@ TYPE _alpha = 3.41;
 /* descriptors for StarPU */
 starpu_data_handle_t _handle_y, _handle_x;
 
-void axpy_cpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+void axpy_cpu(void *descr[], void *arg)
 {
 	TYPE alpha = *((TYPE *)arg);
 
@@ -65,7 +65,7 @@ void axpy_cpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
 }
 
 #ifdef STARPU_USE_CUDA
-void axpy_gpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+void axpy_gpu(void *descr[], void *arg)
 {
 	TYPE alpha = *((TYPE *)arg);
 
@@ -133,7 +133,7 @@ check(void)
 struct starpu_opencl_program opencl_program;
 #endif
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ret, exit_value = 0;
 

+ 2 - 2
examples/basic_examples/block.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010, 2011, 2013  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -79,7 +79,7 @@ int execute_on(uint32_t where, device_func func, float *block, int pnx, int pny,
         return 0;
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
         float *block, n=1.0;
         int i, j, k, ret;

+ 2 - 2
examples/basic_examples/dynamic_handles.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2013, 2014  CNRS
+ * Copyright (C) 2013, 2014, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -65,7 +65,7 @@ struct starpu_codelet dummy_big_cl =
 	.nbuffers = STARPU_NMAXBUFS+1
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	starpu_data_handle_t handle;
 	struct starpu_data_descr *descrs;

+ 3 - 2
examples/basic_examples/hello_world.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010, 2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -54,12 +54,13 @@ struct params
 
 void cpu_func(void *buffers[], void *cl_arg)
 {
+	(void)buffers;
 	struct params *params = (struct params *) cl_arg;
 
 	FPRINTF(stdout, "Hello world (params = {%i, %f} )\n", params->i, params->f);
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 	struct starpu_codelet cl;
 	struct starpu_task *task;

+ 3 - 3
examples/basic_examples/mult.c

@@ -82,8 +82,9 @@ static unsigned zdim = 512;
  * registered data with the "matrix" data interface, we use the matrix macros.
  */
 
-void cpu_mult(void *descr[], STARPU_ATTRIBUTE_UNUSED  void *arg)
+void cpu_mult(void *descr[], void *arg)
 {
+	(void)arg;
 	float *subA, *subB, *subC;
 	uint32_t nxC, nyC, nyA;
 	uint32_t ldA, ldB, ldC;
@@ -340,8 +341,7 @@ static int launch_tasks(void)
 	return 0;
 }
 
-int main(STARPU_ATTRIBUTE_UNUSED int argc, 
-	 STARPU_ATTRIBUTE_UNUSED char **argv)
+int main(void)
 {
 	int ret;
 

+ 2 - 0
examples/basic_examples/multiformat.c

@@ -36,6 +36,8 @@ multiformat_scal_cpu_func(void *buffers[], void *args)
 	struct point *aos;
 	unsigned int n, i;
 
+	(void)args;
+
 	aos = (struct point *) STARPU_MULTIFORMAT_GET_CPU_PTR(buffers[0]);
 	n = STARPU_MULTIFORMAT_GET_NX(buffers[0]);
 

+ 3 - 0
examples/basic_examples/multiformat_conversion_codelets.c

@@ -22,6 +22,7 @@
 #ifdef STARPU_USE_CUDA
 void cuda_to_cpu(void *buffers[], void *arg)
 {
+	(void)arg;
 	struct struct_of_arrays *src = STARPU_MULTIFORMAT_GET_CUDA_PTR(buffers[0]);
 	struct point *dst = STARPU_MULTIFORMAT_GET_CPU_PTR(buffers[0]);
 	int n = STARPU_MULTIFORMAT_GET_NX(buffers[0]);
@@ -34,6 +35,7 @@ void cuda_to_cpu(void *buffers[], void *arg)
 }
 
 extern void cpu_to_cuda_cuda_func(void *buffers[], void *args);
+
 struct starpu_codelet cpu_to_cuda_cl =
 {
 	.cuda_funcs = {cpu_to_cuda_cuda_func},
@@ -53,6 +55,7 @@ struct starpu_codelet cuda_to_cpu_cl =
 #ifdef STARPU_USE_OPENCL
 void opencl_to_cpu(void *buffers[], void *arg)
 {
+	(void)arg;
 	FPRINTF(stderr, "User Entering %s\n", __starpu_func__);
 	struct struct_of_arrays *src = STARPU_MULTIFORMAT_GET_OPENCL_PTR(buffers[0]);
 	struct point *dst = STARPU_MULTIFORMAT_GET_CPU_PTR(buffers[0]);

+ 1 - 1
examples/basic_examples/topology.c

@@ -20,7 +20,7 @@
 
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ret = starpu_init(NULL);
 	if (ret == -ENODEV) return 77;

+ 3 - 3
examples/basic_examples/variable.c

@@ -28,14 +28,14 @@ static unsigned niter = 5000;
 static unsigned niter = 50000;
 #endif
 
-extern void cpu_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args);
+extern void cpu_codelet(void *descr[], void *_args);
 
 #ifdef STARPU_USE_CUDA
-extern void cuda_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args);
+extern void cuda_codelet(void *descr[], void *_args);
 #endif
 
 #ifdef STARPU_USE_OPENCL
-extern void opencl_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args);
+extern void opencl_codelet(void *descr[], void *_args);
 struct starpu_opencl_program opencl_program;
 #endif
 

+ 2 - 2
examples/basic_examples/variable_kernels.cu

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010  Université de Bordeaux
- * Copyright (C) 2010, 2012  CNRS
+ * Copyright (C) 2010, 2012, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -23,7 +23,7 @@ static __global__ void cuda_variable(float * tab)
 	return;
 }
 
-extern "C" void cuda_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args)
+extern "C" void cuda_codelet(void *descr[], void *_args)
 {
 	float *val = (float *)STARPU_VARIABLE_GET_PTR(descr[0]);
 

+ 3 - 2
examples/basic_examples/variable_kernels_cpu.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010  Université de Bordeaux
- * Copyright (C) 2010  CNRS
+ * Copyright (C) 2010, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -17,8 +17,9 @@
 
 #include <starpu.h>
 
-void cpu_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args)
+void cpu_codelet(void *descr[], void *_args)
 {
+	(void)_args;
 	float *val = (float *)STARPU_VARIABLE_GET_PTR(descr[0]);
 
 	*val += 1.0f;

+ 3 - 1
examples/basic_examples/variable_kernels_opencl.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2012, 2016  CNRS
+ * Copyright (C) 2010, 2012, 2016, 2017  CNRS
  * Copyright (C) 2011  Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -26,6 +26,8 @@ void opencl_codelet(void *descr[], void *_args)
 	cl_event event;
 	int id, devid, err;
 
+	(void)_args;
+
         id = starpu_worker_get_id_check();
         devid = starpu_worker_get_devid(id);
 

+ 2 - 2
examples/basic_examples/vector_scal.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2011, 2012, 2013, 2015  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2017  CNRS
  * Copyright (C) 2010-2016  Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -114,7 +114,7 @@ static int approximately_equal(float a, float b)
 	return ai == bi;
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 	/* We consider a vector of float that is initialized just as any of C
  	 * data */

+ 3 - 3
examples/binary/binary.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010-2011, 2013-2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -25,7 +25,7 @@
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
 
 #ifdef STARPU_USE_OPENCL
-extern void opencl_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args);
+extern void opencl_codelet(void *descr[], void *_args);
 struct starpu_opencl_program opencl_program;
 #endif
 
@@ -117,7 +117,7 @@ int compute(char *file_name, int load_as_file, int with_malloc)
 	return ret;
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ret = 0;
 	struct starpu_conf conf;

+ 6 - 3
examples/callback/callback.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2013, 2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -26,8 +26,9 @@
 
 starpu_data_handle_t handle;
 
-void cpu_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args)
+void cpu_codelet(void *descr[], void *_args)
 {
+	(void)_args;
 	int *val = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
 
 	*val += 1;
@@ -46,6 +47,8 @@ void callback_func(void *callback_arg)
 {
 	int ret;
 
+	(void)callback_arg;
+
 	struct starpu_task *task = starpu_task_create();
 	task->cl = &cl;
 	task->handles[0] = handle;
@@ -54,7 +57,7 @@ void callback_func(void *callback_arg)
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int v=40;
 	int ret;

+ 4 - 3
examples/callback/prologue.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2013-2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -28,8 +28,9 @@
 
 starpu_data_handle_t handle;
 
-void cpu_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args)
+void cpu_codelet(void *descr[], void *_args)
 {
+	(void)_args;
 	int *val = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
 
 	*val += 1;
@@ -60,7 +61,7 @@ void pop_prologue_callback_func(void *args)
 }
 
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int v=40;
 	int ret;

+ 32 - 20
examples/cg/cg_kernels.c

@@ -24,8 +24,8 @@
 
 #ifdef STARPU_USE_CUDA
 #include <starpu_cublas_v2.h>
-static const TYPE p1 = 1.0;
-static const TYPE m1 = -1.0;
+static const TYPE gp1 = 1.0;
+static const TYPE gm1 = -1.0;
 #endif
 
 #if 0
@@ -56,6 +56,8 @@ static void print_matrix_from_descr(unsigned nx, unsigned ny, unsigned ld, TYPE
 
 static int can_execute(unsigned workerid, struct starpu_task *task, unsigned nimpl)
 {
+	(void)task;
+	(void)nimpl;
 	enum starpu_worker_archtype type = starpu_worker_get_type(workerid);
 	if (type == STARPU_CPU_WORKER || type == STARPU_OPENCL_WORKER || type == STARPU_MIC_WORKER || type == STARPU_SCC_WORKER)
 		return 1;
@@ -84,10 +86,11 @@ static int can_execute(unsigned workerid, struct starpu_task *task, unsigned nim
 #ifdef STARPU_USE_CUDA
 static void accumulate_variable_cuda(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *v_dst = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	TYPE *v_src = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[1]);
- 
-	cublasStatus_t status = cublasaxpy(starpu_cublas_get_local_handle(), 1, &p1, v_src, 1, v_dst, 1);
+
+	cublasStatus_t status = cublasaxpy(starpu_cublas_get_local_handle(), 1, &gp1, v_src, 1, v_dst, 1);
 	if (status != CUBLAS_STATUS_SUCCESS)
 		STARPU_CUBLAS_REPORT_ERROR(status);
 }
@@ -95,9 +98,10 @@ static void accumulate_variable_cuda(void *descr[], void *cl_arg)
 
 void accumulate_variable_cpu(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *v_dst = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	TYPE *v_src = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[1]);
- 
+
 	*v_dst = *v_dst + *v_src;
 }
 
@@ -124,11 +128,12 @@ struct starpu_codelet accumulate_variable_cl =
 #ifdef STARPU_USE_CUDA
 static void accumulate_vector_cuda(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *v_dst = (TYPE *)STARPU_VECTOR_GET_PTR(descr[0]);
 	TYPE *v_src = (TYPE *)STARPU_VECTOR_GET_PTR(descr[1]);
 	unsigned n = STARPU_VECTOR_GET_NX(descr[0]);
 
-	cublasStatus_t status = cublasaxpy(starpu_cublas_get_local_handle(), n, &p1, v_src, 1, v_dst, 1);
+	cublasStatus_t status = cublasaxpy(starpu_cublas_get_local_handle(), n, &gp1, v_src, 1, v_dst, 1);
 	if (status != CUBLAS_STATUS_SUCCESS)
 		STARPU_CUBLAS_REPORT_ERROR(status);
 }
@@ -136,10 +141,11 @@ static void accumulate_vector_cuda(void *descr[], void *cl_arg)
 
 void accumulate_vector_cpu(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *v_dst = (TYPE *)STARPU_VECTOR_GET_PTR(descr[0]);
 	TYPE *v_src = (TYPE *)STARPU_VECTOR_GET_PTR(descr[1]);
 	unsigned n = STARPU_VECTOR_GET_NX(descr[0]);
- 
+
 	AXPY(n, (TYPE)1.0, v_src, 1, v_dst, 1);
 }
 
@@ -172,6 +178,7 @@ extern void zero_vector(TYPE *x, unsigned nelems);
 
 static void bzero_variable_cuda(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *v = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	size_t size = STARPU_VARIABLE_GET_ELEMSIZE(descr[0]);
 
@@ -181,6 +188,7 @@ static void bzero_variable_cuda(void *descr[], void *cl_arg)
 
 void bzero_variable_cpu(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *v = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	*v = (TYPE)0.0;
 }
@@ -208,6 +216,7 @@ struct starpu_codelet bzero_variable_cl =
 #ifdef STARPU_USE_CUDA
 static void bzero_vector_cuda(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *v = (TYPE *)STARPU_VECTOR_GET_PTR(descr[0]);
 	unsigned n = STARPU_VECTOR_GET_NX(descr[0]);
 	size_t elemsize = STARPU_VECTOR_GET_ELEMSIZE(descr[0]);
@@ -218,9 +227,10 @@ static void bzero_vector_cuda(void *descr[], void *cl_arg)
 
 void bzero_vector_cpu(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *v = (TYPE *)STARPU_VECTOR_GET_PTR(descr[0]);
 	unsigned n = STARPU_VECTOR_GET_NX(descr[0]);
- 
+
 	memset(v, 0, n*sizeof(TYPE));
 }
 
@@ -251,7 +261,8 @@ struct starpu_codelet bzero_vector_cl =
 #ifdef STARPU_USE_CUDA
 static void dot_kernel_cuda(void *descr[], void *cl_arg)
 {
-	TYPE *dot = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]); 
+	(void)cl_arg;
+	TYPE *dot = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	TYPE *v1 = (TYPE *)STARPU_VECTOR_GET_PTR(descr[1]);
 	TYPE *v2 = (TYPE *)STARPU_VECTOR_GET_PTR(descr[2]);
 
@@ -269,7 +280,8 @@ static void dot_kernel_cuda(void *descr[], void *cl_arg)
 
 void dot_kernel_cpu(void *descr[], void *cl_arg)
 {
-	TYPE *dot = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]); 
+	(void)cl_arg;
+	TYPE *dot = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	TYPE *v1 = (TYPE *)STARPU_VECTOR_GET_PTR(descr[1]);
 	TYPE *v2 = (TYPE *)STARPU_VECTOR_GET_PTR(descr[2]);
 
@@ -346,7 +358,7 @@ static void scal_kernel_cuda(void *descr[], void *cl_arg)
 
 	TYPE *v1 = (TYPE *)STARPU_VECTOR_GET_PTR(descr[0]);
 	unsigned n = STARPU_VECTOR_GET_NX(descr[0]);
- 
+
 	/* v1 = p1 v1 */
 	TYPE alpha = p1;
 	cublasStatus_t status = cublasscal(starpu_cublas_get_local_handle(), n, &alpha, v1, 1);
@@ -387,7 +399,7 @@ static struct starpu_codelet scal_kernel_cl =
 };
 
 /*
- *	GEMV kernel : v1 = p1 * v1 + p2 * M v2 
+ *	GEMV kernel : v1 = p1 * v1 + p2 * M v2
  */
 
 #ifdef STARPU_USE_CUDA
@@ -400,7 +412,7 @@ static void gemv_kernel_cuda(void *descr[], void *cl_arg)
 	unsigned ld = STARPU_MATRIX_GET_LD(descr[1]);
 	unsigned nx = STARPU_MATRIX_GET_NX(descr[1]);
 	unsigned ny = STARPU_MATRIX_GET_NY(descr[1]);
- 
+
 	TYPE alpha, beta;
 	starpu_codelet_unpack_args(cl_arg, &beta, &alpha);
 
@@ -431,7 +443,7 @@ void gemv_kernel_cpu(void *descr[], void *cl_arg)
 	{
 		/* Parallel CPU task */
 		unsigned rank = starpu_combined_worker_get_rank();
-		
+
 		unsigned block_size = (ny + worker_size - 1)/worker_size;
 		unsigned new_nx = STARPU_MIN(nx, block_size*(rank+1)) - block_size*rank;
 
@@ -506,7 +518,7 @@ int gemv_kernel(starpu_data_handle_t v1,
 }
 
 /*
- *	AXPY + SCAL kernel : v1 = p1 * v1 + p2 * v2 
+ *	AXPY + SCAL kernel : v1 = p1 * v1 + p2 * v2
  */
 #ifdef STARPU_USE_CUDA
 static void scal_axpy_kernel_cuda(void *descr[], void *cl_arg)
@@ -518,7 +530,7 @@ static void scal_axpy_kernel_cuda(void *descr[], void *cl_arg)
 	TYPE *v2 = (TYPE *)STARPU_VECTOR_GET_PTR(descr[1]);
 
 	unsigned n = STARPU_VECTOR_GET_NX(descr[0]);
- 
+
 	/* Compute v1 = p1 * v1 + p2 * v2.
 	 *	v1 = p1 v1
 	 *	v1 = v1 + p2 v2
@@ -542,7 +554,7 @@ void scal_axpy_kernel_cpu(void *descr[], void *cl_arg)
 	TYPE *v2 = (TYPE *)STARPU_VECTOR_GET_PTR(descr[1]);
 
 	unsigned nx = STARPU_VECTOR_GET_NX(descr[0]);
- 
+
 	/* Compute v1 = p1 * v1 + p2 * v2.
 	 *	v1 = p1 v1
 	 *	v1 = v1 + p2 v2
@@ -593,7 +605,7 @@ int scal_axpy_kernel(starpu_data_handle_t v1, TYPE p1,
 
 
 /*
- *	AXPY kernel : v1 = v1 + p1 * v2 
+ *	AXPY kernel : v1 = v1 + p1 * v2
  */
 #ifdef STARPU_USE_CUDA
 static void axpy_kernel_cuda(void *descr[], void *cl_arg)
@@ -605,7 +617,7 @@ static void axpy_kernel_cuda(void *descr[], void *cl_arg)
 	TYPE *v2 = (TYPE *)STARPU_VECTOR_GET_PTR(descr[1]);
 
 	unsigned n = STARPU_VECTOR_GET_NX(descr[0]);
- 
+
 	/* Compute v1 = v1 + p1 * v2.
 	 */
 	cublasStatus_t status = cublasaxpy(starpu_cublas_get_local_handle(),
@@ -624,7 +636,7 @@ void axpy_kernel_cpu(void *descr[], void *cl_arg)
 	TYPE *v2 = (TYPE *)STARPU_VECTOR_GET_PTR(descr[1]);
 
 	unsigned nx = STARPU_VECTOR_GET_NX(descr[0]);
- 
+
 	/* Compute v1 = p1 * v1 + p2 * v2.
 	 */
 	AXPY(nx, p1, v2, 1, v1, 1);

+ 1 - 1
examples/cholesky/cholesky.h

@@ -186,7 +186,7 @@ void initialize_chol_model(struct starpu_perfmodel* model, char* symbol,
 			   double (*cpu_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned),
 			   double (*cuda_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned));
 
-static void STARPU_ATTRIBUTE_UNUSED parse_args(int argc, char **argv)
+static void parse_args(int argc, char **argv)
 {
 	int i;
 	for (i = 1; i < argc; i++)

+ 2 - 2
examples/cholesky/cholesky_grain_tag.c

@@ -301,7 +301,7 @@ static void initialize_system(int argc, char **argv, float **A, unsigned pinned)
 	starpu_malloc_flags((void **)A, size_p*size_p*sizeof(float), flags);
 }
 
-int cholesky_grain(float *matA, unsigned size, unsigned ld, unsigned nblocks, unsigned nbigblocks, unsigned pinned)
+int cholesky_grain(float *matA, unsigned size, unsigned ld, unsigned nblocks, unsigned nbigblocks)
 {
 	double start;
 	double end;
@@ -380,7 +380,7 @@ int main(int argc, char **argv)
 	}
 #endif
 
-	ret = cholesky_grain(mat, size_p, size_p, nblocks_p, nbigblocks_p, pinned_p);
+	ret = cholesky_grain(mat, size_p, size_p, nblocks_p, nbigblocks_p);
 
 #ifdef CHECK_OUTPUT
 	FPRINTF(stdout, "Results :\n");

+ 3 - 2
examples/cholesky/cholesky_implicit.c

@@ -33,8 +33,9 @@
  *	and construct the DAG
  */
 
-static void callback_turn_spmd_on(void *arg STARPU_ATTRIBUTE_UNUSED)
+static void callback_turn_spmd_on(void *arg)
 {
+	(void)arg;
 	cl22.type = STARPU_SPMD;
 }
 
@@ -356,7 +357,7 @@ int main(int argc, char **argv)
 
 	if(with_ctxs_p)
 	{
-		construct_contexts(execute_cholesky);
+		construct_contexts();
 		start_2benchs(execute_cholesky);
 	}
 	else if(with_noctxs_p)

+ 6 - 3
examples/cholesky/cholesky_kernels.c

@@ -43,8 +43,9 @@ static const float p1 =  1.0;
 static const float m1 = -1.0;
 #endif
 
-static inline void chol_common_cpu_codelet_update_u22(void *descr[], int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void chol_common_cpu_codelet_update_u22(void *descr[], int s, void *_args)
 {
+	(void)_args;
 	/* printf("22\n"); */
 	float *left 	= (float *)STARPU_MATRIX_GET_PTR(descr[0]);
 	float *right 	= (float *)STARPU_MATRIX_GET_PTR(descr[1]);
@@ -114,11 +115,12 @@ void chol_cublas_codelet_update_u22(void *descr[], void *_args)
  * U21
  */
 
-static inline void chol_common_codelet_update_u21(void *descr[], int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void chol_common_codelet_update_u21(void *descr[], int s, void *_args)
 {
 /*	printf("21\n"); */
 	float *sub11;
 	float *sub21;
+	(void)_args;
 
 	sub11 = (float *)STARPU_MATRIX_GET_PTR(descr[0]);
 	sub21 = (float *)STARPU_MATRIX_GET_PTR(descr[1]);
@@ -169,10 +171,11 @@ void chol_cublas_codelet_update_u21(void *descr[], void *_args)
  *	U11
  */
 
-static inline void chol_common_codelet_update_u11(void *descr[], int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void chol_common_codelet_update_u11(void *descr[], int s, void *_args)
 {
 /*	printf("11\n"); */
 	float *sub11;
+	(void)_args;
 
 	sub11 = (float *)STARPU_MATRIX_GET_PTR(descr[0]);
 

+ 12 - 0
examples/cholesky/cholesky_models.c

@@ -44,6 +44,8 @@
 
 double cpu_chol_task_11_cost(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -59,6 +61,8 @@ double cpu_chol_task_11_cost(struct starpu_task *task, struct starpu_perfmodel_a
 
 double cuda_chol_task_11_cost(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -74,6 +78,8 @@ double cuda_chol_task_11_cost(struct starpu_task *task, struct starpu_perfmodel_
 
 double cpu_chol_task_21_cost(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -89,6 +95,8 @@ double cpu_chol_task_21_cost(struct starpu_task *task, struct starpu_perfmodel_a
 
 double cuda_chol_task_21_cost(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -104,6 +112,8 @@ double cuda_chol_task_21_cost(struct starpu_task *task, struct starpu_perfmodel_
 
 double cpu_chol_task_22_cost(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -119,6 +129,8 @@ double cpu_chol_task_22_cost(struct starpu_task *task, struct starpu_perfmodel_a
 
 double cuda_chol_task_22_cost(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);

+ 5 - 4
examples/cholesky/cholesky_tile_tag.c

@@ -38,9 +38,9 @@ starpu_data_handle_t A_state[NMAXBLOCKS][NMAXBLOCKS];
 static struct starpu_task *create_task(starpu_tag_t id)
 {
 	struct starpu_task *task = starpu_task_create();
-		task->cl_arg = NULL;
-		task->use_tag = 1;
-		task->tag_id = id;
+	task->cl_arg = NULL;
+	task->use_tag = 1;
+	task->tag_id = id;
 
 	return task;
 }
@@ -51,7 +51,8 @@ static struct starpu_task *create_task(starpu_tag_t id)
 
 static struct starpu_task * create_task_11(unsigned k, unsigned nblocks)
 {
-/*	FPRINTF(stdout, "task 11 k = %d TAG = %llx\n", k, (TAG11(k))); */
+	(void)nblocks;
+	/*	FPRINTF(stdout, "task 11 k = %d TAG = %llx\n", k, (TAG11(k))); */
 
 	struct starpu_task *task = create_task(TAG11(k));
 

+ 2 - 0
examples/filters/custom_mf/custom_conversion_codelets.c

@@ -21,6 +21,7 @@
 #ifdef STARPU_USE_CUDA
 void cuda_to_cpu(void *buffers[], void *arg)
 {
+	(void)arg;
 	int n = CUSTOM_GET_NX(buffers[0]);
 	float *x = (float*) CUSTOM_GET_X_PTR(buffers[0]);
 	float *y = (float*) CUSTOM_GET_Y_PTR(buffers[0]);
@@ -59,6 +60,7 @@ struct starpu_codelet cuda_to_cpu_cl =
 #ifdef STARPU_USE_OPENCL
 void opencl_to_cpu_cpu_func(void *buffers[], void *arg)
 {
+	(void)arg;
 	int n = CUSTOM_GET_NX(buffers[0]);
 	float *x = (float *) CUSTOM_GET_OPENCL_X_PTR(buffers[0]);
 	struct point *aop;

+ 14 - 1
examples/filters/custom_mf/custom_interface.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2012 INRIA
- * Copyright (C) 2016  CNRS
+ * Copyright (C) 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -290,6 +290,8 @@ copy_cuda_common_async(void *src_interface, unsigned src_node,
 		       void *dst_interface, unsigned dst_node,
 		       cudaStream_t stream, enum cudaMemcpyKind kind)
 {
+	(void)src_node;
+	(void)dst_node;
 	struct custom_data_interface *src_custom, *dst_custom;
 
 	src_custom = (struct custom_data_interface *) src_interface;
@@ -358,12 +360,21 @@ static int copy_cuda_to_ram_async(void *src_interface, unsigned src_node,
 static int copy_cuda_to_cuda(void *src_interface, unsigned src_node,
 			     void *dst_interface, unsigned dst_node)
 {
+	(void)src_interface;
+	(void)src_node;
+	(void)dst_interface;
+	(void)dst_node;
 	assert(0);
 }
 static int copy_cuda_to_cuda_async(void *src_interface, unsigned src_node,
 				   void *dst_interface, unsigned dst_node,
 				   cudaStream_t stream)
 {
+	(void)src_interface;
+	(void)src_node;
+	(void)dst_interface;
+	(void)dst_node;
+	(void)stream;
 	assert(0);
 }
 #endif /* !STARPU_USE_CUDA */
@@ -403,6 +414,7 @@ static int copy_ram_to_opencl_async(void *src_interface, unsigned src_node,
 				    void *dst_interface, unsigned dst_node,
 				    cl_event *event)
 {
+	(void)event;
 	starpu_ssize_t size;
 	struct custom_data_interface *src_custom, *dst_custom;
 
@@ -446,6 +458,7 @@ static int copy_opencl_to_ram_async(void *src_interface, unsigned src_node,
 				    void *dst_interface, unsigned dst_node,
 				    cl_event *event)
 {
+	(void)event;
 	starpu_ssize_t size;
 	struct custom_data_interface *src_custom, *dst_custom;
 

+ 2 - 0
examples/filters/custom_mf/custom_mf_filter.c

@@ -63,6 +63,7 @@ static void
 custom_filter(void *father, void *child, struct starpu_data_filter *f,
 		unsigned id, unsigned nchunks)
 {
+	(void)f;
 	struct custom_data_interface *custom_father, *custom_child;
 	custom_father = (struct custom_data_interface *) father;
 	custom_child = (struct custom_data_interface *) child;
@@ -134,6 +135,7 @@ custom_scal_cpu_func(void *buffers[], void *args)
 {
 	struct point *aos;
 	unsigned int n, i;
+	(void)args;
 
 	aos = CUSTOM_GET_CPU_PTR(buffers[0]);
 	n = CUSTOM_GET_NX(buffers[0]);

+ 2 - 2
examples/filters/fblock.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2011, 2013-2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -74,7 +74,7 @@ void print_data(starpu_data_handle_t block_handle)
 struct starpu_opencl_program opencl_program;
 #endif
 
-int main(int argc, char **argv)
+int main(void)
 {
         int *block,n=0;
         int i, j, k;

+ 2 - 2
examples/filters/fmatrix.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -46,7 +46,7 @@ void cpu_func(void *buffers[], void *cl_arg)
         }
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 	unsigned j;
 	int n=1;

+ 6 - 3
examples/filters/fmultiple_manual.c

@@ -30,9 +30,10 @@
 
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
 
-void matrix_fill(void *buffers[], void *cl_arg STARPU_ATTRIBUTE_UNUSED)
+void matrix_fill(void *buffers[], void *cl_arg)
 {
 	unsigned i, j;
+	(void)cl_arg;
 
 	/* length of the matrix */
 	unsigned nx = STARPU_MATRIX_GET_NX(buffers[0]);
@@ -97,11 +98,13 @@ struct starpu_codelet cl_check_scale =
 	.name = "fmultiple_check_scale"
 };
 
-void empty(void *buffers[] STARPU_ATTRIBUTE_UNUSED, void *cl_arg STARPU_ATTRIBUTE_UNUSED)
+void empty(void *buffers[], void *cl_arg)
 {
 	/* This doesn't need to do anything, it's simply used to make coherency
 	 * between the two views, by simply running on the home node of the
 	 * data, thus getting back all data pieces there.  */
+	(void)buffers;
+	(void)cl_arg;
 }
 
 struct starpu_codelet cl_switch =
@@ -111,7 +114,7 @@ struct starpu_codelet cl_switch =
 	.name = "switch"
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	unsigned j, n=1;
 	int matrix[NX][NY];

+ 3 - 2
examples/filters/fmultiple_submit.c

@@ -30,9 +30,10 @@
 
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
 
-void matrix_fill(void *buffers[], void *cl_arg STARPU_ATTRIBUTE_UNUSED)
+void matrix_fill(void *buffers[], void *cl_arg)
 {
 	unsigned i, j;
+	(void)cl_arg;
 
 	/* length of the matrix */
 	unsigned nx = STARPU_MATRIX_GET_NX(buffers[0]);
@@ -97,7 +98,7 @@ struct starpu_codelet cl_check_scale =
 	.name = "fmultiple_check_scale"
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	unsigned j, n=1;
 	int matrix[NX][NY];

+ 3 - 2
examples/filters/fmultiple_submit_readonly.c

@@ -36,9 +36,10 @@
 
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
 
-void matrix_fill(void *buffers[], void *cl_arg STARPU_ATTRIBUTE_UNUSED)
+void matrix_fill(void *buffers[], void *cl_arg)
 {
 	unsigned i, j;
+	(void)cl_arg;
 
 	/* length of the matrix */
 	unsigned nx = STARPU_MATRIX_GET_NX(buffers[0]);
@@ -143,7 +144,7 @@ struct starpu_codelet cl_check =
 	.name = "fmultiple_check"
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int start, factor;
 	unsigned j, n=1;

+ 2 - 2
examples/filters/fvector.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -40,7 +40,7 @@ void cpu_func(void *buffers[], void *cl_arg)
                 val[i] *= *factor;
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int i;
         int vector[NX];

+ 4 - 2
examples/filters/shadow.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2012-2014  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -51,6 +51,7 @@
 
 void cpu_func(void *buffers[], void *cl_arg)
 {
+	(void)cl_arg;
         unsigned i;
 
         /* length of the shadowed source vector */
@@ -72,6 +73,7 @@ void cpu_func(void *buffers[], void *cl_arg)
 #ifdef STARPU_USE_CUDA
 void cuda_func(void *buffers[], void *cl_arg)
 {
+	(void)cl_arg;
         /* length of the shadowed source vector */
         unsigned n = STARPU_VECTOR_GET_NX(buffers[0]);
         /* local copy of the shadowed source vector pointer */
@@ -88,7 +90,7 @@ void cuda_func(void *buffers[], void *cl_arg)
 }
 #endif
 
-int main(int argc, char **argv)
+int main(void)
 {
 	unsigned j;
         int vector[NX + 2*SHADOW];

+ 4 - 2
examples/filters/shadow2d.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2012-2014  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -94,6 +94,7 @@
 
 void cpu_func(void *buffers[], void *cl_arg)
 {
+	(void)cl_arg;
         /* length of the shadowed source matrix */
         unsigned ld = STARPU_MATRIX_GET_LD(buffers[0]);
         unsigned n = STARPU_MATRIX_GET_NX(buffers[0]);
@@ -121,6 +122,7 @@ void cpu_func(void *buffers[], void *cl_arg)
 #ifdef STARPU_USE_CUDA
 void cuda_func(void *buffers[], void *cl_arg)
 {
+	(void)cl_arg;
 	cudaError_t cures;
 
         /* length of the shadowed source matrix */
@@ -145,7 +147,7 @@ void cuda_func(void *buffers[], void *cl_arg)
 }
 #endif
 
-int main(int argc, char **argv)
+int main(void)
 {
 	unsigned i, j, k, l;
         int matrix[NY + 2*SHADOWY][NX + 2*SHADOWX];

+ 4 - 2
examples/filters/shadow3d.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2012-2014  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2015  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -42,6 +42,7 @@
 
 void cpu_func(void *buffers[], void *cl_arg)
 {
+	(void)cl_arg;
         /* length of the shadowed source matrix */
         unsigned ldy = STARPU_BLOCK_GET_LDY(buffers[0]);
         unsigned ldz = STARPU_BLOCK_GET_LDZ(buffers[0]);
@@ -75,6 +76,7 @@ void cpu_func(void *buffers[], void *cl_arg)
 #ifdef STARPU_USE_CUDA
 void cuda_func(void *buffers[], void *cl_arg)
 {
+	(void)cl_arg;
         /* length of the shadowed source matrix */
         unsigned ldy = STARPU_BLOCK_GET_LDY(buffers[0]);
         unsigned ldz = STARPU_BLOCK_GET_LDZ(buffers[0]);
@@ -109,7 +111,7 @@ void cuda_func(void *buffers[], void *cl_arg)
 }
 #endif
 
-int main(int argc, char **argv)
+int main(void)
 {
 	unsigned i, j, k, l, m, n;
         int matrix[NZ + 2*SHADOWZ][NY + 2*SHADOWY][NX + 2*SHADOWX];

+ 2 - 1
examples/fortran90/marshalling.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2015  ONERA
  * Copyright (C) 2015  Inria
- * Copyright (C) 2015  CNRS
+ * Copyright (C) 2015, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -122,6 +122,7 @@ struct starpu_codelet cl_copy_element =
 
 void copy_element_cpu_func(void *buffers[], void *cl_arg)
 {
+	(void)cl_arg;
 	double **ro = (double **) STARPU_MATRIX_GET_PTR(buffers[0]);
 	int Neq_max  = STARPU_MATRIX_GET_NX(buffers[0]);
 	int Np = STARPU_MATRIX_GET_NY(buffers[0]);

+ 1 - 1
examples/heat/dw_factolu.c

@@ -792,7 +792,7 @@ void initialize_system(float **A, float **B, unsigned dim, unsigned pinned)
 	}
 }
 
-void free_system(float *A, float *B, unsigned dim, unsigned pinned)
+void free_system(float *A, float *B, unsigned pinned)
 {
 	if (pinned)
 	{

+ 2 - 3
examples/heat/dw_factolu.h

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010-2012, 2014  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -48,8 +48,7 @@ typedef struct
 } cl_args;
 
 #ifdef CHECK_RESULTS
-static void STARPU_ATTRIBUTE_UNUSED compare_A_LU(float *A, float *LU,
-				unsigned size, unsigned ld)
+static void compare_A_LU(float *A, float *LU, unsigned size, unsigned ld)
 {
 	unsigned i,j;
 	float *L;

+ 8 - 4
examples/heat/dw_factolu_kernels.c

@@ -117,8 +117,9 @@ void display_stat_heat(void)
  *   U22
  */
 
-static inline void dw_common_cpu_codelet_update_u22(void *descr[], int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void dw_common_cpu_codelet_update_u22(void *descr[], int s, void *_args)
 {
+	(void)_args;
 	float *left 	= (float *)STARPU_MATRIX_GET_PTR(descr[0]);
 	float *right 	= (float *)STARPU_MATRIX_GET_PTR(descr[1]);
 	float *center 	= (float *)STARPU_MATRIX_GET_PTR(descr[2]);
@@ -182,8 +183,9 @@ void dw_cublas_codelet_update_u22(void *descr[], void *_args)
  * U12
  */
 
-static inline void dw_common_codelet_update_u12(void *descr[], int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void dw_common_codelet_update_u12(void *descr[], int s, void *_args)
 {
+	(void)_args;
 	float *sub11;
 	float *sub12;
 
@@ -246,8 +248,9 @@ void dw_cublas_codelet_update_u12(void *descr[], void *_args)
  * U21
  */
 
-static inline void dw_common_codelet_update_u21(void *descr[], int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void dw_common_codelet_update_u21(void *descr[], int s, void *_args)
 {
+	(void)_args;
 	float *sub11;
 	float *sub21;
 
@@ -322,8 +325,9 @@ static inline void debug_print(float *tab, unsigned ld, unsigned n)
 	FPRINTF(stderr, "\n");
 }
 
-static inline void dw_common_codelet_update_u11(void *descr[], int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void dw_common_codelet_update_u11(void *descr[], int s, void *_args)
 {
+	(void)_args;
 	float *sub11;
 
 	sub11 = (float *)STARPU_MATRIX_GET_PTR(descr[0]);

+ 3 - 3
examples/heat/dw_sparse_cg.h

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010-2011  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -63,7 +63,7 @@ struct cg_problem
 };
 
 /* some useful functions */
-static void STARPU_ATTRIBUTE_UNUSED parse_args(int argc, char **argv)
+static void parse_args(int argc, char **argv)
 {
 	int i;
 	for (i = 1; i < argc; i++)
@@ -94,7 +94,7 @@ static void STARPU_ATTRIBUTE_UNUSED parse_args(int argc, char **argv)
 }
 
 
-static void STARPU_ATTRIBUTE_UNUSED print_results(float *result, unsigned size)
+static void print_results(float *result, unsigned size)
 {
 	printf("**** RESULTS **** \n");
 	unsigned i;

+ 6 - 3
examples/heat/dw_sparse_cg_kernels.c

@@ -55,8 +55,9 @@
  *		descr[0] = A, descr[1] = x, descr [2] = r, descr[3] = b
  */
 
-void cpu_codelet_func_1(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+void cpu_codelet_func_1(void *descr[], void *arg)
 {
+	(void)arg;
 	float *nzval = (float *)STARPU_CSR_GET_NZVAL(descr[0]);
 	uint32_t *colind = STARPU_CSR_GET_COLIND(descr[0]);
 	uint32_t *rowptr = STARPU_CSR_GET_ROWPTR(descr[0]);
@@ -97,8 +98,9 @@ void cpu_codelet_func_1(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
  *	compute d = r
  *		descr[0] = d, descr[1] = r
  */
-void cpu_codelet_func_2(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+void cpu_codelet_func_2(void *descr[], void *arg)
 {
+	(void)arg;
 	/* simply copy r into d */
 	uint32_t nx = STARPU_VECTOR_GET_NX(descr[0]);
 	size_t elemsize = STARPU_VECTOR_GET_ELEMSIZE(descr[0]);
@@ -167,8 +169,9 @@ void cublas_codelet_func_3(void *descr[], void *arg)
  *		descr[0] = A, descr[1] = d, descr [2] = q
  */
 
-void cpu_codelet_func_4(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+void cpu_codelet_func_4(void *descr[], void *arg)
 {
+	(void)arg;
 	float *nzval = (float *)STARPU_CSR_GET_NZVAL(descr[0]);
 	uint32_t *colind = STARPU_CSR_GET_COLIND(descr[0]);
 	uint32_t *rowptr = STARPU_CSR_GET_ROWPTR(descr[0]);

+ 2 - 2
examples/heat/heat.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2012, 2015, 2017  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -795,7 +795,7 @@ int main(int argc, char **argv)
 
 		starpu_cublas_shutdown();
 		starpu_shutdown();
-		free_system(A, B, newsize, pinned);
+		free_system(A, B, pinned);
 	}
 
 #ifdef STARPU_OPENGL_RENDER

+ 2 - 2
examples/heat/heat.h

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2011-2012, 2014  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -62,7 +62,7 @@ extern void dw_factoLU(float *matA, unsigned size, unsigned ld, unsigned nblocks
 extern void dw_factoLU_tag(float *matA, unsigned size, unsigned ld, unsigned nblocks, unsigned no_prio);
 extern void dw_factoLU_grain(float *matA, unsigned size, unsigned ld, unsigned nblocks, unsigned nbigblocks);
 extern void initialize_system(float **A, float **B, unsigned dim, unsigned pinned);
-extern void free_system(float *A, float *B, unsigned dim, unsigned pinned);
+extern void free_system(float *A, float *B, unsigned pinned);
 
 void display_stat_heat(void);
 

+ 2 - 2
examples/heat/heat_display.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010-2011  Université de Bordeaux
- * Copyright (C) 2010, 2011  CNRS
+ * Copyright (C) 2010, 2011, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -143,7 +143,7 @@ static void display(void)
 }
 
 
-static void pressKey(unsigned char key, int x STARPU_ATTRIBUTE_UNUSED, int y  STARPU_ATTRIBUTE_UNUSED)
+static void pressKey(unsigned char key, int x, int y)
 {
 	switch (key)
 	{

+ 22 - 1
examples/heat/lu_kernels_model.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010-2011  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017  CNRS
  * Copyright (C) 2011  Télécom-SudParis
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -44,6 +44,7 @@
 
 double task_11_cost(struct starpu_task *task, unsigned nimpl)
 {
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -55,6 +56,7 @@ double task_11_cost(struct starpu_task *task, unsigned nimpl)
 
 double task_12_cost(struct starpu_task *task, unsigned nimpl)
 {
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -69,6 +71,7 @@ double task_12_cost(struct starpu_task *task, unsigned nimpl)
 
 double task_21_cost(struct starpu_task *task, unsigned nimpl)
 {
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -84,6 +87,7 @@ double task_21_cost(struct starpu_task *task, unsigned nimpl)
 
 double task_22_cost(struct starpu_task *task, unsigned nimpl)
 {
+	(void)nimpl;
 	uint32_t nx, ny, nz;
 
 	nx = starpu_matrix_get_nx(task->handles[2]);
@@ -104,6 +108,8 @@ double task_22_cost(struct starpu_task *task, unsigned nimpl)
 
 double task_11_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -116,6 +122,8 @@ double task_11_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch*
 
 double task_12_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -129,6 +137,8 @@ double task_12_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch*
 
 double task_21_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -143,6 +153,8 @@ double task_21_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch*
 
 double task_22_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t nx, ny, nz;
 
 	nx = starpu_matrix_get_nx(task->handles[2]);
@@ -163,6 +175,8 @@ double task_22_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch*
 
 double task_11_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -175,6 +189,8 @@ double task_11_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch*
 
 double task_12_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -188,6 +204,8 @@ double task_12_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch*
 
 double task_21_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t n;
 
 	n = starpu_matrix_get_nx(task->handles[0]);
@@ -202,6 +220,8 @@ double task_21_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch*
 
 double task_22_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl)
 {
+	(void)arch;
+	(void)nimpl;
 	uint32_t nx, ny, nz;
 
 	nx = starpu_matrix_get_nx(task->handles[2]);
@@ -219,6 +239,7 @@ void initialize_lu_kernels_model(struct starpu_perfmodel* model, char * symbol,
 				 double (*cpu_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned),
 				 double (*cuda_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned))
 {
+	(void)cost_function;
 	model->symbol = symbol;
 	model->type = STARPU_HISTORY_BASED;
 

+ 5 - 5
examples/incrementer/incrementer.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2011, 2013-2016  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -19,7 +19,6 @@
  * This is just a small example which increments two values of a vector several times.
  */
 #include <starpu.h>
-#include <config.h>
 
 #ifdef STARPU_QUICK_CHECK
 static unsigned niter = 500;
@@ -32,16 +31,17 @@ static unsigned niter = 50000;
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
 
 #ifdef STARPU_USE_CUDA
-extern void cuda_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args);
+extern void cuda_codelet(void *descr[], void *_args);
 #endif
 
 #ifdef STARPU_USE_OPENCL
-extern void opencl_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args);
+extern void opencl_codelet(void *descr[], void *_args);
 struct starpu_opencl_program opencl_program;
 #endif
 
-void cpu_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args)
+void cpu_codelet(void *descr[], void *_args)
 {
+	(void)_args;
 	float *val = (float *)STARPU_VECTOR_GET_PTR(descr[0]);
 
 	val[0] += 1.0f; val[1] += 1.0f;

+ 1 - 0
examples/incrementer/incrementer_kernels_opencl.c

@@ -22,6 +22,7 @@
 extern struct starpu_opencl_program opencl_program;
 void opencl_codelet(void *descr[], void *_args)
 {
+	(void)_args;
 	cl_mem val = (cl_mem)STARPU_VECTOR_GET_DEV_HANDLE(descr[0]);
 	cl_kernel kernel;
 	cl_command_queue queue;

+ 20 - 18
examples/interface/complex.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2012, 2013  CNRS
+ * Copyright (C) 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -20,8 +20,10 @@
 
 static int can_execute(unsigned workerid, struct starpu_task *task, unsigned nimpl)
 {
-       if (starpu_worker_get_type(workerid) == STARPU_OPENCL_WORKER)
-               return 1;
+	(void) task;
+	(void) nimpl;
+	if (starpu_worker_get_type(workerid) == STARPU_OPENCL_WORKER)
+		return 1;
 
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_SIMGRID
@@ -29,26 +31,26 @@ static int can_execute(unsigned workerid, struct starpu_task *task, unsigned nim
 	return 1;
 #else
        /* Cuda device */
-       const struct cudaDeviceProp *props;
-       props = starpu_cuda_get_device_properties(workerid);
-       if (props->major >= 2 || props->minor >= 3)
-       {
-               /* At least compute capability 1.3, supports doubles */
-               return 1;
-       }
-       else
-       {
-               /* Old card does not support doubles */
-               return 0;
-       }
+	const struct cudaDeviceProp *props;
+	props = starpu_cuda_get_device_properties(workerid);
+	if (props->major >= 2 || props->minor >= 3)
+	{
+		/* At least compute capability 1.3, supports doubles */
+		return 1;
+	}
+	else
+	{
+		/* Old card does not support doubles */
+		return 0;
+	}
 #endif
 #else
-       return 1;
+	return 1;
 #endif
 }
 
 #ifdef STARPU_USE_CUDA
-extern void copy_complex_codelet_cuda(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args);
+extern void copy_complex_codelet_cuda(void *descr[], void *_args);
 #endif
 #ifdef STARPU_USE_OPENCL
 extern void copy_complex_codelet_opencl(void *buffers[], void *args);
@@ -74,7 +76,7 @@ struct starpu_codelet cl_copy =
 struct starpu_opencl_program opencl_program;
 #endif
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ret = 0;
 	starpu_data_handle_t handle1;

+ 2 - 2
examples/interface/complex_kernels.cu

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2012  CNRS
+ * Copyright (C) 2012, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -28,7 +28,7 @@ static __global__ void complex_copy_cuda(double *o_real, double *o_imaginary, do
 	}
 }
 
-extern "C" void copy_complex_codelet_cuda(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args)
+extern "C" void copy_complex_codelet_cuda(void *descr[], void *_args)
 {
 	(void)_args;
 

+ 5 - 1
examples/lu/lu_example.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2017  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -109,6 +109,10 @@ static void parse_args(int argc, char **argv)
 
 static void display_matrix(TYPE *m, unsigned n, unsigned ld, char *str)
 {
+	(void)m;
+	(void)n;
+	(void)ld;
+	(void)str;
 #if 0
 	FPRINTF(stderr, "***********\n");
 	FPRINTF(stderr, "Display matrix %s\n", str);

+ 2 - 3
examples/lu/xlu.h

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010-2011, 2014  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2014  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -39,8 +39,7 @@
         (2*((uint64_t)n1)*((uint64_t)n2)*((uint64_t)n3))
 
 #ifdef CHECK_RESULTS
-static void STARPU_ATTRIBUTE_UNUSED compare_A_LU(float *A, float *LU,
-				unsigned size, unsigned ld)
+static void compare_A_LU(float *A, float *LU, unsigned size, unsigned ld)
 {
 	unsigned i,j;
 	float *L;

+ 4 - 3
examples/lu/xlu_implicit_pivot.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2010-2012, 2014-2015, 2017  Université de Bordeaux
  * Copyright (C) 2010  Mehdi Juhoor <mjuhoor@gmail.com>
- * Copyright (C) 2010, 2011, 2012, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -222,10 +222,10 @@ static int dw_codelet_facto_pivot(starpu_data_handle_t *dataAp,
 	return 0;
 }
 
-starpu_data_handle_t get_block_with_striding(starpu_data_handle_t *dataAp,
-			unsigned nblocks STARPU_ATTRIBUTE_UNUSED, unsigned j, unsigned i)
+starpu_data_handle_t get_block_with_striding(starpu_data_handle_t *dataAp, unsigned nblocks, unsigned j, unsigned i)
 {
 	/* we use filters */
+	(void)nblocks;
 	return starpu_data_get_sub_data(*dataAp, 2, j, i);
 }
 
@@ -308,6 +308,7 @@ starpu_data_handle_t get_block_with_no_striding(starpu_data_handle_t *dataAp, un
 
 int STARPU_LU(lu_decomposition_pivot_no_stride)(TYPE **matA, unsigned *ipiv, unsigned size, unsigned ld, unsigned nblocks)
 {
+	(void)ld;
 	starpu_data_handle_t *dataAp = malloc(nblocks*nblocks*sizeof(starpu_data_handle_t));
 
 	/* monitor and partition the A matrix into blocks :

+ 26 - 24
examples/lu/xlu_kernels.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010-2012, 2014-2017  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2015  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2015, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -36,12 +36,12 @@ static const TYPE m1 = -1.0f;
 #endif
 
 /*
- *   U22 
+ *   U22
  */
 
-static inline void STARPU_LU(common_u22)(void *descr[],
-				int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void STARPU_LU(common_u22)(void *descr[], int s, void *_args)
 {
+	(void)_args;
 	TYPE *right 	= (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]);
 	TYPE *left 	= (TYPE *)STARPU_MATRIX_GET_PTR(descr[1]);
 	TYPE *center 	= (TYPE *)STARPU_MATRIX_GET_PTR(descr[2]);
@@ -62,7 +62,7 @@ static inline void STARPU_LU(common_u22)(void *descr[],
 	switch (s)
 	{
 		case 0:
-			CPU_GEMM("N", "N", dy, dx, dz, 
+			CPU_GEMM("N", "N", dy, dx, dz,
 				(TYPE)-1.0, right, ld21, left, ld12,
 				(TYPE)1.0, center, ld22);
 			break;
@@ -114,6 +114,8 @@ static struct starpu_perfmodel STARPU_LU(model_22) =
 #ifdef STARPU_USE_CUDA
 static int can_execute(unsigned workerid, struct starpu_task *task, unsigned nimpl)
 {
+	(void)task;
+	(void)nimpl;
 	enum starpu_worker_archtype type = starpu_worker_get_type(workerid);
 	if (type == STARPU_CPU_WORKER || type == STARPU_MIC_WORKER || type == STARPU_SCC_WORKER)
 		return 1;
@@ -161,13 +163,13 @@ struct starpu_codelet cl22 =
  * U12
  */
 
-static inline void STARPU_LU(common_u12)(void *descr[],
-				int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void STARPU_LU(common_u12)(void *descr[], int s, void *_args)
 {
+	(void)_args;
 	TYPE *sub11;
 	TYPE *sub12;
 
-	sub11 = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]);	
+	sub11 = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]);
 	sub12 = (TYPE *)STARPU_MATRIX_GET_PTR(descr[1]);
 
 	unsigned ld11 = STARPU_MATRIX_GET_LD(descr[0]);
@@ -246,13 +248,13 @@ struct starpu_codelet cl12 =
 	.model = &STARPU_LU(model_12)
 };
 
-/* 
+/*
  * U21
  */
 
-static inline void STARPU_LU(common_u21)(void *descr[],
-				int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void STARPU_LU(common_u21)(void *descr[], int s, void *_args)
 {
+	(void)_args;
 	TYPE *sub11;
 	TYPE *sub21;
 
@@ -264,7 +266,7 @@ static inline void STARPU_LU(common_u21)(void *descr[],
 
 	unsigned nx21 = STARPU_MATRIX_GET_NX(descr[1]);
 	unsigned ny21 = STARPU_MATRIX_GET_NY(descr[1]);
-	
+
 #ifdef STARPU_USE_CUDA
 	cublasStatus status;
 #endif
@@ -303,7 +305,7 @@ void STARPU_LU(cublas_u21)(void *descr[], void *_args)
 {
 	STARPU_LU(common_u21)(descr, 1, _args);
 }
-#endif 
+#endif
 
 static struct starpu_perfmodel STARPU_LU(model_21) =
 {
@@ -337,12 +339,12 @@ struct starpu_codelet cl21 =
  *	U11
  */
 
-static inline void STARPU_LU(common_u11)(void *descr[],
-				int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void STARPU_LU(common_u11)(void *descr[], int s, void *_args)
 {
+	(void)_args;
 	TYPE *sub11;
 
-	sub11 = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]); 
+	sub11 = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]);
 
 	unsigned long nx = STARPU_MATRIX_GET_NX(descr[0]);
 	unsigned long ld = STARPU_MATRIX_GET_LD(descr[0]);
@@ -365,7 +367,7 @@ static inline void STARPU_LU(common_u11)(void *descr[],
 				STARPU_ASSERT(!ISZERO(pivot));
 
 				CPU_SCAL(nx - z - 1, (1.0/pivot), &sub11[z+(z+1)*ld], ld);
-		
+
 				CPU_GER(nx - z - 1, nx - z - 1, -1.0,
 						&sub11[(z+1)+z*ld], 1,
 						&sub11[z+(z+1)*ld], ld,
@@ -390,7 +392,7 @@ static inline void STARPU_LU(common_u11)(void *descr[],
 						(CUBLAS_TYPE*)&inv_pivot, (CUBLAS_TYPE*)&sub11[z+(z+1)*ld], ld);
 				if (status != CUBLAS_STATUS_SUCCESS)
 					STARPU_CUBLAS_REPORT_ERROR(status);
-				
+
 				status = CUBLAS_GER(handle,
 						nx - z - 1, nx - z - 1,
 						(CUBLAS_TYPE*)&m1,
@@ -400,7 +402,7 @@ static inline void STARPU_LU(common_u11)(void *descr[],
 				if (status != CUBLAS_STATUS_SUCCESS)
 					STARPU_CUBLAS_REPORT_ERROR(status);
 			}
-			
+
 			cudaStreamSynchronize(stream);
 
 			break;
@@ -459,7 +461,7 @@ static inline void STARPU_LU(common_u11_pivot)(void *descr[],
 {
 	TYPE *sub11;
 
-	sub11 = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]); 
+	sub11 = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]);
 
 	unsigned long nx = STARPU_MATRIX_GET_NX(descr[0]);
 	unsigned long ld = STARPU_MATRIX_GET_LD(descr[0]);
@@ -504,7 +506,7 @@ static inline void STARPU_LU(common_u11_pivot)(void *descr[],
 				STARPU_ASSERT(!ISZERO(pivot));
 
 				CPU_SCAL(nx - z - 1, (1.0/pivot), &sub11[z+(z+1)*ld], ld);
-		
+
 				CPU_GER(nx - z - 1, nx - z - 1, -1.0,
 						&sub11[(z+1)+z*ld], 1,
 						&sub11[z+(z+1)*ld], ld,
@@ -532,7 +534,7 @@ static inline void STARPU_LU(common_u11_pivot)(void *descr[],
 					piv_ind -= 1;
 					if (status != CUBLAS_STATUS_SUCCESS)
 						STARPU_CUBLAS_REPORT_ERROR(status);
-	
+
 					ipiv[z + first] = piv_ind + z + first;
 
 					/* swap if needed */
@@ -559,7 +561,7 @@ static inline void STARPU_LU(common_u11_pivot)(void *descr[],
 						(CUBLAS_TYPE*)&sub11[z+(z+1)*ld], ld);
 				if (status != CUBLAS_STATUS_SUCCESS)
 					STARPU_CUBLAS_REPORT_ERROR(status);
-				
+
 				status = CUBLAS_GER(handle,
 						nx - z - 1, nx - z - 1,
 						(CUBLAS_TYPE*)&m1,
@@ -628,7 +630,7 @@ static inline void STARPU_LU(common_pivot)(void *descr[],
 {
 	TYPE *matrix;
 
-	matrix = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]); 
+	matrix = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]);
 	unsigned long nx = STARPU_MATRIX_GET_NX(descr[0]);
 	unsigned long ld = STARPU_MATRIX_GET_LD(descr[0]);
 

+ 4 - 3
examples/lu/xlu_pivot.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2012, 2014-2015, 2017  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -323,10 +323,10 @@ static int dw_codelet_facto_pivot(starpu_data_handle_t *dataAp,
 	return 0;
 }
 
-starpu_data_handle_t get_block_with_striding(starpu_data_handle_t *dataAp,
-			unsigned nblocks STARPU_ATTRIBUTE_UNUSED, unsigned j, unsigned i)
+starpu_data_handle_t get_block_with_striding(starpu_data_handle_t *dataAp, unsigned nblocks, unsigned j, unsigned i)
 {
 	/* we use filters */
+	(void)nblocks;
 	return starpu_data_get_sub_data(*dataAp, 2, j, i);
 }
 
@@ -414,6 +414,7 @@ starpu_data_handle_t get_block_with_no_striding(starpu_data_handle_t *dataAp, un
 
 int STARPU_LU(lu_decomposition_pivot_no_stride)(TYPE **matA, unsigned *ipiv, unsigned size, unsigned ld, unsigned nblocks)
 {
+	(void)ld;
 	if (starpu_mic_worker_get_count() || starpu_scc_worker_get_count() || starpu_mpi_ms_worker_get_count())
 		/* These won't work with pivoting: we pass a pointer in cl_args */
 		return -ENODEV;

+ 4 - 4
examples/matvecmult/matvecmult.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010, 2011-2012, 2014-2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -22,8 +22,9 @@
 
 #ifdef STARPU_USE_OPENCL
 struct starpu_opencl_program opencl_code;
-void opencl_codelet(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args)
+void opencl_codelet(void *descr[], void *_args)
 {
+	(void)_args;
 	cl_kernel kernel;
 	cl_command_queue queue;
 	int id, devid, err, n;
@@ -135,9 +136,8 @@ static struct starpu_codelet cl =
 	.model = &starpu_matvecmult_model
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
-
 	struct starpu_conf conf;
 
 	starpu_conf_init(&conf);

+ 1 - 1
examples/mlr/mlr.c

@@ -148,7 +148,7 @@ static struct starpu_codelet cl_final =
 };
 
 
-int main(int argc, char **argv)
+int main(void)
 {
 	/* Initialization */
 	unsigned i;

+ 5 - 3
examples/mult/xgemm.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2009-2016  Université de Bordeaux
  * Copyright (C) 2010  Mehdi Juhoor <mjuhoor@gmail.com>
- * Copyright (C) 2010, 2011, 2012, 2013, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -150,8 +150,9 @@ static void partition_mult_data(void)
 }
 
 #ifdef STARPU_USE_CUDA
-static void cublas_mult(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+static void cublas_mult(void *descr[], void *arg)
 {
+	(void)arg;
 	TYPE *subA = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]);
 	TYPE *subB = (TYPE *)STARPU_MATRIX_GET_PTR(descr[1]);
 	TYPE *subC = (TYPE *)STARPU_MATRIX_GET_PTR(descr[2]);
@@ -174,8 +175,9 @@ static void cublas_mult(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
 }
 #endif
 
-void cpu_mult(void *descr[], STARPU_ATTRIBUTE_UNUSED  void *arg)
+void cpu_mult(void *descr[], void *arg)
 {
+	(void)arg;
 	TYPE *subA = (TYPE *)STARPU_MATRIX_GET_PTR(descr[0]);
 	TYPE *subB = (TYPE *)STARPU_MATRIX_GET_PTR(descr[1]);
 	TYPE *subC = (TYPE *)STARPU_MATRIX_GET_PTR(descr[2]);

+ 2 - 2
examples/openmp/vector_scal_omp.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017  CNRS
  * Copyright (C) 2010-2013, 2015  Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -77,7 +77,7 @@ static struct starpu_codelet cl =
 	.model = &vector_scal_model,
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	struct starpu_conf conf;
 	float *vector;

+ 3 - 0
examples/pi/pi.c

@@ -42,6 +42,7 @@ static unsigned long long nshot_per_task = 16*1024*1024ULL;
 
 void cpu_kernel(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	unsigned *directions = (unsigned *)STARPU_VECTOR_GET_PTR(descr[0]);
 	unsigned nx = nshot_per_task;
 
@@ -74,6 +75,8 @@ void cpu_kernel(void *descr[], void *cl_arg)
 /* The amount of work does not depend on the data size at all :) */
 static size_t size_base(struct starpu_task *task, unsigned nimpl)
 {
+	(void)task;
+	(void)nimpl;
 	return nshot_per_task;
 }
 

+ 13 - 4
examples/pi/pi_redux.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2015, 2017  Université de Bordeaux
- * Copyright (C) 2016  CNRS
+ * Copyright (C) 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -65,8 +65,9 @@ static unsigned short xsubi[STARPU_NMAXWORKERS*PADDING];
 static starpu_drand48_data randbuffer[STARPU_NMAXWORKERS*PADDING];
 
 /* Function to initialize the random number generator in the current worker */
-static void init_rng(void *arg STARPU_ATTRIBUTE_UNUSED)
+static void init_rng(void *arg)
 {
+	(void)arg;
 #ifdef STARPU_HAVE_CURAND
 	curandStatus_t res;
 #endif
@@ -108,6 +109,8 @@ static void init_rng(void *arg STARPU_ATTRIBUTE_UNUSED)
 /* The amount of work does not depend on the data size at all :) */
 static size_t size_base(struct starpu_task *task, unsigned nimpl)
 {
+	(void)task;
+	(void)nimpl;
 	return nshot_per_task;
 }
 
@@ -151,8 +154,9 @@ static void parse_args(int argc, char **argv)
  *	Monte-carlo kernel
  */
 
-void pi_func_cpu(void *descr[], void *cl_arg STARPU_ATTRIBUTE_UNUSED)
+void pi_func_cpu(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	int workerid = starpu_worker_get_id_check();
 
 	unsigned short *worker_xsub;
@@ -188,8 +192,9 @@ void pi_func_cpu(void *descr[], void *cl_arg STARPU_ATTRIBUTE_UNUSED)
 extern void pi_redux_cuda_kernel(float *x, float *y, unsigned n, unsigned long *shot_cnt);
 
 #ifdef STARPU_HAVE_CURAND
-static void pi_func_cuda(void *descr[], void *cl_arg STARPU_ATTRIBUTE_UNUSED)
+static void pi_func_cuda(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	curandStatus_t res;
 
 	int workerid = starpu_worker_get_id_check();
@@ -256,6 +261,7 @@ static struct starpu_codelet pi_cl_redux =
 
 void init_cpu_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
         unsigned long *val = (unsigned long *)STARPU_VARIABLE_GET_PTR(descr[0]);
         *val = 0;
 }
@@ -263,6 +269,7 @@ void init_cpu_func(void *descr[], void *cl_arg)
 #ifdef STARPU_HAVE_CURAND
 static void init_cuda_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
         unsigned long *val = (unsigned long *)STARPU_VARIABLE_GET_PTR(descr[0]);
         cudaMemsetAsync(val, 0, sizeof(unsigned long), starpu_cuda_get_local_stream());
 }
@@ -284,6 +291,7 @@ static struct starpu_codelet init_codelet =
 /* Dummy implementation of the addition of two unsigned longs in CUDA */
 static void redux_cuda_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	unsigned long *d_a = (unsigned long *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	unsigned long *d_b = (unsigned long *)STARPU_VARIABLE_GET_PTR(descr[1]);
 
@@ -301,6 +309,7 @@ static void redux_cuda_func(void *descr[], void *cl_arg)
 
 void redux_cpu_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	unsigned long *a = (unsigned long *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	unsigned long *b = (unsigned long *)STARPU_VARIABLE_GET_PTR(descr[1]);
 

+ 6 - 2
examples/pipeline/pipeline.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2012, 2013, 2014  CNRS
+ * Copyright (C) 2012, 2013, 2014, 2017  CNRS
  * Copyright (C) 2012, 2014, 2016-2017  Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -87,6 +87,7 @@ static struct starpu_codelet pipeline_codelet_x =
 /* axpy codelets */
 void pipeline_cpu_axpy(void *descr[], void *arg)
 {
+	(void)arg;
 	float *x = (float *) STARPU_VECTOR_GET_PTR(descr[0]);
 	float *y = (float *) STARPU_VECTOR_GET_PTR(descr[1]);
 	int n = STARPU_VECTOR_GET_NX(descr[0]);
@@ -97,6 +98,7 @@ void pipeline_cpu_axpy(void *descr[], void *arg)
 #ifdef STARPU_USE_CUDA
 void pipeline_cublas_axpy(void *descr[], void *arg)
 {
+	(void)arg;
 	float *x = (float *) STARPU_VECTOR_GET_PTR(descr[0]);
 	float *y = (float *) STARPU_VECTOR_GET_PTR(descr[1]);
 	int n = STARPU_VECTOR_GET_NX(descr[0]);
@@ -128,8 +130,9 @@ static struct starpu_codelet pipeline_codelet_axpy =
 };
 
 /* sum codelet */
-void pipeline_cpu_sum(void *descr[], void *_args)
+void pipeline_cpu_sum(void *descr[], void *arg)
 {
+	(void)arg;
 	float *x = (float *) STARPU_VECTOR_GET_PTR(descr[0]);
 	int n = STARPU_VECTOR_GET_NX(descr[0]);
 	float y;
@@ -142,6 +145,7 @@ void pipeline_cpu_sum(void *descr[], void *_args)
 #ifdef STARPU_USE_CUDA
 void pipeline_cublas_sum(void *descr[], void *arg)
 {
+	(void)arg;
 	float *x = (float *) STARPU_VECTOR_GET_PTR(descr[0]);
 	int n = STARPU_VECTOR_GET_NX(descr[0]);
 	float y;

+ 2 - 1
examples/ppm_downscaler/yuv_downscaler.c

@@ -56,8 +56,9 @@ void parse_args(int argc, char **argv)
 #define FRAMESIZE	sizeof(struct yuv_frame)
 #define NEW_FRAMESIZE	sizeof(struct yuv_new_frame)
 
-void ds_kernel_cpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+void ds_kernel_cpu(void *descr[], void *arg)
 {
+	(void)arg;
 	uint8_t *input = (uint8_t *)STARPU_MATRIX_GET_PTR(descr[0]);
 	const unsigned input_ld = STARPU_MATRIX_GET_LD(descr[0]);
 

+ 4 - 3
examples/profiling/profiling.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2013, 2015, 2017  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -31,9 +31,10 @@ static unsigned niter = 50;
 static unsigned niter = 500;
 #endif
 
-void sleep_codelet(STARPU_ATTRIBUTE_UNUSED void *descr[],
-			STARPU_ATTRIBUTE_UNUSED void *_args)
+void sleep_codelet(void *descr[], void *arg)
 {
+	(void)descr;
+	(void)arg;
 	usleep(1000);
 }
 

+ 13 - 3
examples/reductions/dot_product.c

@@ -58,6 +58,8 @@ static int cublas_version;
 
 static int can_execute(unsigned workerid, struct starpu_task *task, unsigned nimpl)
 {
+	(void)task;
+	(void)nimpl;
 	enum starpu_worker_archtype type = starpu_worker_get_type(workerid);
 	if (type == STARPU_CPU_WORKER || type == STARPU_OPENCL_WORKER || type == STARPU_MIC_WORKER || type == STARPU_SCC_WORKER)
 		return 1;
@@ -85,6 +87,7 @@ static int can_execute(unsigned workerid, struct starpu_task *task, unsigned nim
 
 void init_cpu_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	DOT_TYPE *dot = (DOT_TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	*dot = 0.0f;
 }
@@ -92,14 +95,16 @@ void init_cpu_func(void *descr[], void *cl_arg)
 #ifdef STARPU_USE_CUDA
 void init_cuda_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	DOT_TYPE *dot = (DOT_TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	cudaMemsetAsync(dot, 0, sizeof(DOT_TYPE), starpu_cuda_get_local_stream());
 }
 #endif
 
 #ifdef STARPU_USE_OPENCL
-void init_opencl_func(void *buffers[], void *args)
+void init_opencl_func(void *buffers[], void *cl_arg)
 {
+	(void)cl_arg;
         cl_int err;
 	cl_command_queue queue;
 
@@ -145,6 +150,7 @@ static struct starpu_codelet init_codelet =
 
 void redux_cpu_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	DOT_TYPE *dota = (DOT_TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	DOT_TYPE *dotb = (DOT_TYPE *)STARPU_VARIABLE_GET_PTR(descr[1]);
 
@@ -158,6 +164,7 @@ extern void redux_cuda_func(void *descr[], void *_args);
 #ifdef STARPU_USE_OPENCL
 void redux_opencl_func(void *buffers[], void *args)
 {
+	(void)args;
 	int id, devid;
         cl_int err;
 	cl_kernel kernel;
@@ -224,6 +231,7 @@ static struct starpu_codelet redux_codelet =
 
 void dot_cpu_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	float *local_x = (float *)STARPU_VECTOR_GET_PTR(descr[0]);
 	float *local_y = (float *)STARPU_VECTOR_GET_PTR(descr[1]);
 	DOT_TYPE *dot = (DOT_TYPE *)STARPU_VARIABLE_GET_PTR(descr[2]);
@@ -244,6 +252,7 @@ void dot_cpu_func(void *descr[], void *cl_arg)
 #ifdef STARPU_USE_CUDA
 void dot_cuda_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	DOT_TYPE current_dot;
 	float local_dot;
 
@@ -270,8 +279,9 @@ void dot_cuda_func(void *descr[], void *cl_arg)
 #endif
 
 #ifdef STARPU_USE_OPENCL
-void dot_opencl_func(void *buffers[], void *args)
+void dot_opencl_func(void *buffers[], void *cl_arg)
 {
+	(void)cl_arg;
 	int id, devid;
         cl_int err;
 	cl_kernel kernel;
@@ -339,7 +349,7 @@ static struct starpu_codelet dot_codelet =
  *	Tasks initialization
  */
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ret;
 

+ 4 - 1
examples/reductions/minmax_reduction.c

@@ -51,6 +51,7 @@ static starpu_data_handle_t _minmax_handle;
 
 void minmax_neutral_cpu_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *array = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 
 	/* Initialize current min to the greatest possible value. */
@@ -75,6 +76,7 @@ static struct starpu_codelet minmax_init_codelet =
 
 void minmax_redux_cpu_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	TYPE *array_dst = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[0]);
 	TYPE *array_src = (TYPE *)STARPU_VARIABLE_GET_PTR(descr[1]);
 
@@ -104,6 +106,7 @@ static struct starpu_codelet minmax_redux_codelet =
 
 void minmax_cpu_func(void *descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	/* The array containing the values */
 	TYPE *local_array = (TYPE *)STARPU_VECTOR_GET_PTR(descr[0]);
 	unsigned n = STARPU_VECTOR_GET_NX(descr[0]);
@@ -139,7 +142,7 @@ static struct starpu_codelet minmax_codelet =
  *	Tasks initialization
  */
 
-int main(int argc, char **argv)
+int main(void)
 {
 	unsigned long i;
 	int ret;

+ 5 - 3
examples/sched_ctx/dummy_sched_with_ctx.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2017  Université de Bordeaux
- * Copyright (C) 2010-2013, 2016  CNRS
+ * Copyright (C) 2010-2013, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -145,8 +145,10 @@ static struct starpu_sched_policy dummy_sched_policy =
 	.worker_type = STARPU_WORKER_LIST,
 };
 
-void dummy_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg STARPU_ATTRIBUTE_UNUSED)
+void dummy_func(void *descr[], void *arg)
 {
+	(void)descr;
+	(void)arg;
 }
 
 static struct starpu_codelet dummy_codelet =
@@ -161,7 +163,7 @@ static struct starpu_codelet dummy_codelet =
 };
 
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ntasks = NTASKS;
 	int ret;

+ 3 - 3
examples/sched_ctx/gpu_partition.c

@@ -41,7 +41,7 @@ float _alpha = 3.41;
 /* descriptors for StarPU */
 starpu_data_handle_t _handle_y[NITER], _handle_x[NITER];
 
-void axpy_cpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
+void axpy_cpu(void *descr[], void *arg)
 {
 	float alpha = *((float *)arg);
 
@@ -56,7 +56,7 @@ void axpy_cpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
 }
 
 #ifdef STARPU_USE_CUDA
-extern void cuda_axpy(void *descr[], STARPU_ATTRIBUTE_UNUSED void *_args);
+extern void cuda_axpy(void *descr[], void *_args);
 #endif
 
 static struct starpu_perfmodel axpy_model =
@@ -98,7 +98,7 @@ check(int niter)
 	return EXIT_SUCCESS;
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ret, exit_value = 0;
 	int iter;

+ 3 - 2
examples/sched_ctx/nested_sched_ctxs.c

@@ -49,8 +49,9 @@ int parallel_code(int sched_ctx)
 	return t;
 }
 
-static void sched_ctx_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void sched_ctx_func(void *descr[], void *arg)
 {
+	(void)descr;
 	unsigned sched_ctx = (uintptr_t)arg;
 	int t = parallel_code(sched_ctx);
 	if (sched_ctx > 0 && sched_ctx < 3)
@@ -70,7 +71,7 @@ static struct starpu_codelet sched_ctx_codelet =
 	.name = "sched_ctx"
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	tasks_executed[0] = 0;
 	tasks_executed[1] = 0;

+ 1 - 1
examples/sched_ctx/parallel_code.c

@@ -59,7 +59,7 @@ void *th(void* p)
 	pthread_exit(ret);
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ret;
 	void* tasks_executed;

+ 5 - 2
examples/sched_ctx/parallel_tasks_reuse_handle.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2015, 2017 INRIA
- * Copyright (C) 2015, 2016 CNRS
+ * Copyright (C) 2015, 2016, 2017 CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -60,6 +60,8 @@ void parallel_task_prologue_init_once_and_for_all(void * sched_ctx_)
 
 void noop(void * buffers[], void * cl_arg)
 {
+	(void)buffers;
+	(void)cl_arg;
 }
 
 static struct starpu_codelet init_parallel_worker_cl=
@@ -144,6 +146,7 @@ void parallel_task_deinit()
 /* Codelet SUM */
 static void sum_cpu(void * descr[], void *cl_arg)
 {
+	(void)cl_arg;
 	double *v_dst = (double *) STARPU_VECTOR_GET_PTR(descr[0]);
 	double *v_src0 = (double *) STARPU_VECTOR_GET_PTR(descr[1]);
 	double *v_src1 = (double *) STARPU_VECTOR_GET_PTR(descr[2]);
@@ -167,7 +170,7 @@ static struct starpu_codelet sum_cl =
 	.modes={STARPU_RW,STARPU_R, STARPU_R}
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ntasks = NTASKS;
 	int ret, j, k;

+ 4 - 4
examples/sched_ctx/parallel_tasks_with_cluster_api.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2015, 2017 Université de Bordeaux
  * Copyright (C) 2015 INRIA
- * Copyright (C) 2015 CNRS
+ * Copyright (C) 2015, 2017 CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -55,7 +55,7 @@ static struct starpu_codelet sum_cl =
 	.modes={STARPU_RW,STARPU_R, STARPU_R}
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ntasks = NTASKS;
 	int ret, i;
@@ -73,8 +73,8 @@ int main(int argc, char **argv)
 	/* We regroup resources under each sockets into a cluster. We express a partition
 	 * of one socket to create two internal clusters */
 	clusters = starpu_cluster_machine(HWLOC_OBJ_SOCKET,
-									  STARPU_CLUSTER_PARTITION_ONE, STARPU_CLUSTER_NB, 2,
-									  0);
+					  STARPU_CLUSTER_PARTITION_ONE, STARPU_CLUSTER_NB, 2,
+					  0);
 	starpu_cluster_print(clusters);
 
 	/* Data preparation */

+ 2 - 2
examples/sched_ctx/prio.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2013  CNRS
+ * Copyright (C) 2013, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -18,7 +18,7 @@
 
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ret;
 

+ 11 - 5
examples/sched_ctx/sched_ctx.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2014  Université de Bordeaux
- * Copyright (C) 2010-2014, 2016  CNRS
+ * Copyright (C) 2010-2014, 2016, 2017  CNRS
  * Copyright (C) 2017  Inria
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -29,20 +29,26 @@ int tasks_executed = 0;
 int ctx1_tasks_executed = 0;
 int ctx2_tasks_executed = 0;
 
-static void sched_ctx_cpu_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg STARPU_ATTRIBUTE_UNUSED)
+static void sched_ctx_cpu_func(void *descr[], void *arg)
 {
+	(void)descr;
+	(void)arg;
 	(void)STARPU_ATOMIC_ADD(&tasks_executed,1);
 	(void)STARPU_ATOMIC_ADD(&ctx1_tasks_executed,1);
 }
 
-static void sched_ctx2_cpu_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg STARPU_ATTRIBUTE_UNUSED)
+static void sched_ctx2_cpu_func(void *descr[], void *arg)
 {
+	(void)descr;
+	(void)arg;
 	(void)STARPU_ATOMIC_ADD(&tasks_executed,1);
 	(void)STARPU_ATOMIC_ADD(&ctx2_tasks_executed,1);
 }
 
-static void sched_ctx2_cuda_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg STARPU_ATTRIBUTE_UNUSED)
+static void sched_ctx2_cuda_func(void *descr[], void *arg)
 {
+	(void)descr;
+	(void)arg;
 	(void)STARPU_ATOMIC_ADD(&tasks_executed,1);
 	(void)STARPU_ATOMIC_ADD(&ctx2_tasks_executed,1);
 }
@@ -65,7 +71,7 @@ static struct starpu_codelet sched_ctx_codelet2 =
 };
 
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ntasks = NTASKS;
 	int ret;

+ 4 - 3
examples/sched_ctx/sched_ctx_without_sched_policy.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2014  Université de Bordeaux
- * Copyright (C) 2010-2014, 2016  CNRS
+ * Copyright (C) 2010-2014, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -48,8 +48,9 @@ int parallel_code(int sched_ctx)
 	return t;
 }
 
-static void sched_ctx_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void sched_ctx_func(void *descr[], void *arg)
 {
+	(void)descr;
 	unsigned sched_ctx = (uintptr_t)arg;
 	tasks_executed[sched_ctx-1] += parallel_code(sched_ctx);
 }
@@ -64,7 +65,7 @@ static struct starpu_codelet sched_ctx_codelet =
 };
 
 
-int main(int argc, char **argv)
+int main(void)
 {
 	tasks_executed[0] = 0;
 	tasks_executed[1] = 0;

+ 4 - 3
examples/sched_ctx/sched_ctx_without_sched_policy_awake.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2014  Université de Bordeaux
- * Copyright (C) 2010-2014, 2016  CNRS
+ * Copyright (C) 2010-2014, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -39,8 +39,9 @@ int parallel_code(int sched_ctx)
 	return t;
 }
 
-static void sched_ctx_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void sched_ctx_func(void *descr[], void *arg)
 {
+	(void)descr;
 	unsigned sched_ctx = (uintptr_t)arg;
 	parallel_code(sched_ctx);
 }
@@ -55,7 +56,7 @@ static struct starpu_codelet sched_ctx_codelet =
 };
 
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int i;
 	for(i = 0; i < STARPU_NMAXWORKERS; i++)

+ 3 - 2
examples/sched_ctx/two_cpu_contexts.c

@@ -18,8 +18,9 @@
 #include <stdlib.h>
 
 /* This example case follows the same pattern its native Fortran version nf_sched_ctx.f90 */
-static void sched_ctx_cpu_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *cl_args)
+static void sched_ctx_cpu_func(void *descr[], void *cl_args)
 {
+	(void)descr;
 	int task_id;
 	starpu_codelet_unpack_args(cl_args, &task_id);
 	printf("task: %d, workerid: %d\n", task_id, starpu_worker_get_id());
@@ -33,7 +34,7 @@ static struct starpu_codelet sched_ctx_codelet =
 	.name = "sched_ctx"
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ncpu;
 	int nprocs1;

+ 1 - 3
examples/sched_ctx_utils/sched_ctx_utils.c

@@ -202,13 +202,11 @@ void start_2ndbench(void (*bench)(unsigned, unsigned))
 	printf("%2.2f %2.2f\n", rv[1].avg_timing, timing);
 }
 
-void construct_contexts(void (*bench)(unsigned, unsigned))
+void construct_contexts()
 {
 	unsigned nprocs1 = cpu1 + gpu + gpu1;
 	unsigned nprocs2 = cpu2 + gpu + gpu2;
 	unsigned n_all_gpus = gpu + gpu1 + gpu2;
-
-
 	int procs[nprocs1];
 	unsigned i;
 	int k = 0;

+ 1 - 1
examples/sched_ctx_utils/sched_ctx_utils.h

@@ -21,7 +21,7 @@
 
 void parse_args_ctx(int argc, char **argv);
 void update_sched_ctx_timing_results(double gflops, double timing);
-void construct_contexts(void (*bench)(unsigned size, unsigned nblocks));
+void construct_contexts();
 void start_2benchs(void (*bench)(unsigned size, unsigned nblocks));
 void start_1stbench(void (*bench)(unsigned size, unsigned nblocks));
 void start_2ndbench(void (*bench)(unsigned size, unsigned nblocks));

+ 5 - 3
examples/scheduler/dummy_sched.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2017  Université de Bordeaux
- * Copyright (C) 2010-2013, 2016  CNRS
+ * Copyright (C) 2010-2013, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -140,8 +140,10 @@ static struct starpu_sched_policy dummy_sched_policy =
 	.worker_type = STARPU_WORKER_LIST,
 };
 
-void dummy_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg STARPU_ATTRIBUTE_UNUSED)
+void dummy_func(void *descr[], void *arg)
 {
+	(void)descr;
+	(void)arg;
 }
 
 static struct starpu_codelet dummy_codelet =
@@ -156,7 +158,7 @@ static struct starpu_codelet dummy_codelet =
 };
 
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ntasks = NTASKS;
 	int ret;

+ 13 - 1
examples/scheduler/heteroprio_test.c

@@ -63,18 +63,24 @@ void initSchedulerCallback(unsigned sched_ctx)
 
 void callback_a_cpu(void *buffers[], void *cl_arg)
 {
+	(void)buffers;
+	(void)cl_arg;
 	usleep(100000);
 	FPRINTF(stderr, "[COMMUTE_LOG] callback %s\n", __FUNCTION__); fflush(stderr);
 }
 
 void callback_b_cpu(void *buffers[], void *cl_arg)
 {
+	(void)buffers;
+	(void)cl_arg;
 	usleep(100000);
 	FPRINTF(stderr, "[COMMUTE_LOG] callback %s\n", __FUNCTION__); fflush(stderr);
 }
 
 void callback_c_cpu(void *buffers[], void *cl_arg)
 {
+	(void)buffers;
+	(void)cl_arg;
 	usleep(100000);
 	FPRINTF(stderr, "[COMMUTE_LOG] callback %s\n", __FUNCTION__); fflush(stderr);
 }
@@ -82,24 +88,30 @@ void callback_c_cpu(void *buffers[], void *cl_arg)
 #ifdef STARPU_USE_OPENCL
 void callback_a_opencl(void *buffers[], void *cl_arg)
 {
+	(void)buffers;
+	(void)cl_arg;
 	usleep(100000);
 	FPRINTF(stderr, "[COMMUTE_LOG] callback %s\n", __FUNCTION__); fflush(stderr);
 }
 
 void callback_b_opencl(void *buffers[], void *cl_arg)
 {
+	(void)buffers;
+	(void)cl_arg;
 	usleep(100000);
 	FPRINTF(stderr, "[COMMUTE_LOG] callback %s\n", __FUNCTION__); fflush(stderr);
 }
 
 void callback_c_opencl(void *buffers[], void *cl_arg)
 {
+	(void)buffers;
+	(void)cl_arg;
 	usleep(100000);
 	FPRINTF(stderr, "[COMMUTE_LOG] callback %s\n", __FUNCTION__); fflush(stderr);
 }
 #endif
 
-int main(int argc, char** argv)
+int main(void)
 {
 	int ret;
 	struct starpu_conf conf;

+ 2 - 2
examples/spmd/vector_scal_spmd.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017  CNRS
  * Copyright (C) 2010-2013, 2015  Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -102,7 +102,7 @@ static struct starpu_codelet cl =
 	.model = &vector_scal_model,
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	struct starpu_conf conf;
 	float *vector;

+ 3 - 4
examples/spmv/dw_block_spmv.c

@@ -120,12 +120,12 @@ void init_problem_callback(void *arg)
 	}
 }
 
-unsigned get_bcsr_nchildren(STARPU_ATTRIBUTE_UNUSED struct starpu_data_filter *f, starpu_data_handle_t handle)
+unsigned get_bcsr_nchildren(struct starpu_data_filter *f, starpu_data_handle_t handle)
 {
   return (unsigned)starpu_bcsr_get_nnz(handle);
 }
 
-struct starpu_data_interface_ops *get_bcsr_child_ops(STARPU_ATTRIBUTE_UNUSED struct starpu_data_filter *f, STARPU_ATTRIBUTE_UNUSED unsigned child)
+struct starpu_data_interface_ops *get_bcsr_child_ops(struct starpu_data_filter *f, unsigned child)
 {
   return &starpu_interface_matrix_ops;
 }
@@ -295,8 +295,7 @@ void print_results(void)
 	}
 }
 
-int main(STARPU_ATTRIBUTE_UNUSED int argc,
-	STARPU_ATTRIBUTE_UNUSED char **argv)
+int main(void)
 {
 	int ret;
 

+ 1 - 1
examples/spmv/dw_block_spmv_kernels.c

@@ -30,7 +30,7 @@ static const float p1 =  1.0;
 static const float m1 = -1.0;
 #endif
 
-static inline void common_block_spmv(void *descr[], int s, STARPU_ATTRIBUTE_UNUSED void *_args)
+static inline void common_block_spmv(void *descr[], int s, void *_args)
 {
 	/* printf("22\n"); */
 	float *block 	= (float *)STARPU_MATRIX_GET_PTR(descr[0]);

+ 1 - 0
examples/spmv/spmv.c

@@ -51,6 +51,7 @@ static void parse_args(int argc, char **argv)
  * same number of rows. */
 static void csr_filter_func(void *father_interface, void *child_interface, struct starpu_data_filter *f, unsigned id, unsigned nparts)
 {
+	(void)f;
 	struct starpu_csr_interface *csr_father = (struct starpu_csr_interface *) father_interface;
 	struct starpu_csr_interface *csr_child = (struct starpu_csr_interface *) child_interface;
 

+ 4 - 2
examples/spmv/spmv_kernels.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2009, 2010, 2011, 2014-2015  Université de Bordeaux
  * Copyright (C) 2010  Mehdi Juhoor <mjuhoor@gmail.com>
- * Copyright (C) 2010, 2011, 2012, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -28,6 +28,7 @@ void spmv_kernel_opencl(void *descr[], void *args)
 	cl_kernel kernel;
 	cl_command_queue queue;
 	int id, devid, err, n;
+	(void)args;
 
 	int nnz = (int) STARPU_CSR_GET_NNZ(descr[0]);
 	int nrow = (int) STARPU_CSR_GET_NROW(descr[0]);
@@ -109,8 +110,9 @@ void compile_spmv_opencl_kernel(void)
 }
 #endif
 
-void spmv_kernel_cpu(void *descr[], STARPU_ATTRIBUTE_UNUSED  void *arg)
+void spmv_kernel_cpu(void *descr[], void *arg)
 {
+	(void)arg;
 	float *nzval = (float *)STARPU_CSR_GET_NZVAL(descr[0]);
 	uint32_t *colind = STARPU_CSR_GET_COLIND(descr[0]);
 	uint32_t *rowptr = STARPU_CSR_GET_ROWPTR(descr[0]);

+ 87 - 86
examples/stencil/implicit-stencil-kernels.c

@@ -26,14 +26,14 @@
  *   the boundaries into the block and perform some update loops:
  *
  *     comp. buffer      save. buffers        comp. buffer        save. buffers        comp. buffer
- *   |     ...     |                                                                                      
- *   |             | +------------------+ +------------------+                                            
- *   |     #N+1    | | #N+1 bottom copy====>#N+1 bottom copy |                                            
- *   +-------------+ +------------------+ +------------------+                                            
- *   | #N top copy | |   #N top copy    | |                  |                                            
- *   +-------------+ +------------------+ |                  |                                            
- *                                        | #N               |                                            
- *                                                 ...                                                    
+ *   |     ...     |
+ *   |             | +------------------+ +------------------+
+ *   |     #N+1    | | #N+1 bottom copy====>#N+1 bottom copy |
+ *   +-------------+ +------------------+ +------------------+
+ *   | #N top copy | |   #N top copy    | |                  |
+ *   +-------------+ +------------------+ |                  |
+ *                                        | #N               |
+ *                                                 ...
  *                                        |                  | +----------------+ +----------------------+
  *                                        |                  | | #N bottom copy | | block #N bottom copy |
  * ^                                      +------------------+ +----------------+ +----------------------+
@@ -46,14 +46,14 @@
  *   this block).
  *
  *     comp. buffer      save. buffers        comp. buffer        save. buffers        comp. buffer
- *   |     ...     |                                                                                      
- *   |             | +------------------+ +------------------+                                            
- *   |     #N+1    | | #N+1 bottom copy | | #N+1 bottom copy |                                            
- *   +-------------+ +------------------+ +------------------+                                            
- *   | #N top copy | |   #N top copy   <====                 |                                            
- *   +-------------+ +------------------+ |..................|                                            
- *                                        | #N               |                                            
- *                                                 ...                                                    
+ *   |     ...     |
+ *   |             | +------------------+ +------------------+
+ *   |     #N+1    | | #N+1 bottom copy | | #N+1 bottom copy |
+ *   +-------------+ +------------------+ +------------------+
+ *   | #N top copy | |   #N top copy   <====                 |
+ *   +-------------+ +------------------+ |..................|
+ *                                        | #N               |
+ *                                                 ...
  *                                        |                  | +----------------+ +----------------------+
  *                                        |                  | | #N bottom copy | | block #N bottom copy |
  * ^                                      +------------------+ +----------------+ +----------------------+
@@ -63,14 +63,14 @@
  *
  * - save_cl_bottom, same for the bottom
  *     comp. buffer      save. buffers        comp. buffer        save. buffers        comp. buffer
- *   |     ...     |                                                                                      
- *   |             | +------------------+ +------------------+                                            
- *   |     #N+1    | | #N+1 bottom copy | | #N+1 bottom copy |                                            
- *   +-------------+ +------------------+ +------------------+                                            
- *   | #N top copy | |   #N top copy    | |                  |                                            
- *   +-------------+ +------------------+ |                  |                                            
- *                                        | #N               |                                            
- *                                                 ...                                                    
+ *   |     ...     |
+ *   |             | +------------------+ +------------------+
+ *   |     #N+1    | | #N+1 bottom copy | | #N+1 bottom copy |
+ *   +-------------+ +------------------+ +------------------+
+ *   | #N top copy | |   #N top copy    | |                  |
+ *   +-------------+ +------------------+ |                  |
+ *                                        | #N               |
+ *                                                 ...
  *                                        |..................| +----------------+ +----------------------+
  *                                        |                 ====>#N bottom copy | | block #N bottom copy |
  * ^                                      +------------------+ +----------------+ +----------------------+
@@ -182,8 +182,8 @@ static void load_subblock_from_buffer_cuda(void *_block,
  */
 static void update_func_cuda(void *descr[], void *arg)
 {
-    unsigned z;
-    starpu_codelet_unpack_args(arg, &z);
+	unsigned z;
+	starpu_codelet_unpack_args(arg, &z);
 	struct block_description *block = get_block_description(z);
 
 	int workerid = starpu_worker_get_id_check();
@@ -272,8 +272,8 @@ static void load_subblock_from_buffer_opencl(struct starpu_block_interface *bloc
  */
 static void update_func_opencl(void *descr[], void *arg)
 {
-    unsigned z;
-    starpu_codelet_unpack_args(arg, &z);
+	unsigned z;
+	starpu_codelet_unpack_args(arg, &z);
 	struct block_description *block = get_block_description(z);
 
 	int workerid = starpu_worker_get_id_check();
@@ -421,7 +421,7 @@ void update_func_cpu(void *descr[], void *arg)
 static struct starpu_perfmodel cl_update_model =
 {
 	.type = STARPU_HISTORY_BASED,
-	.symbol = "cl_update" 
+	.symbol = "cl_update"
 };
 
 struct starpu_codelet cl_update =
@@ -510,7 +510,7 @@ unsigned top_per_worker[STARPU_NMAXWORKERS];
 unsigned bottom_per_worker[STARPU_NMAXWORKERS];
 
 /* top save, CPU version */
-void dummy_func_top_cpu(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+void dummy_func_top_cpu(void *descr[], void *arg)
 {
     unsigned z;
     starpu_codelet_unpack_args(arg, &z);
@@ -529,7 +529,7 @@ void dummy_func_top_cpu(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
 }
 
 /* bottom save, CPU version */
-void dummy_func_bottom_cpu(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+void dummy_func_bottom_cpu(void *descr[], void *arg)
 {
     unsigned z;
     starpu_codelet_unpack_args(arg, &z);
@@ -547,7 +547,7 @@ void dummy_func_bottom_cpu(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
 
 /* top save, CUDA version */
 #ifdef STARPU_USE_CUDA
-static void dummy_func_top_cuda(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void dummy_func_top_cuda(void *descr[], void *arg)
 {
     unsigned z;
     starpu_codelet_unpack_args(arg, &z);
@@ -566,7 +566,7 @@ static void dummy_func_top_cuda(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg
 }
 
 /* bottom save, CUDA version */
-static void dummy_func_bottom_cuda(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void dummy_func_bottom_cuda(void *descr[], void *arg)
 {
 	unsigned z;
 	starpu_codelet_unpack_args(arg, &z);
@@ -585,7 +585,7 @@ static void dummy_func_bottom_cuda(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *
 
 /* top save, OpenCL version */
 #ifdef STARPU_USE_OPENCL
-static void dummy_func_top_opencl(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void dummy_func_top_opencl(void *descr[], void *arg)
 {
     unsigned z;
     starpu_codelet_unpack_args(arg, &z);
@@ -604,7 +604,7 @@ static void dummy_func_top_opencl(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *a
 }
 
 /* bottom save, OPENCL version */
-static void dummy_func_bottom_opencl(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void dummy_func_bottom_opencl(void *descr[], void *arg)
 {
 	unsigned z;
 	starpu_codelet_unpack_args(arg, &z);
@@ -625,13 +625,13 @@ static void dummy_func_bottom_opencl(void *descr[] STARPU_ATTRIBUTE_UNUSED, void
 static struct starpu_perfmodel save_cl_bottom_model =
 {
 	.type = STARPU_HISTORY_BASED,
-	.symbol = "save_cl_bottom" 
+	.symbol = "save_cl_bottom"
 };
 
 static struct starpu_perfmodel save_cl_top_model =
 {
 	.type = STARPU_HISTORY_BASED,
-	.symbol = "save_cl_top" 
+	.symbol = "save_cl_top"
 };
 
 struct starpu_codelet save_cl_bottom =
@@ -667,45 +667,45 @@ struct starpu_codelet save_cl_top =
 };
 
 /* Memset a block's buffers */
-static void memset_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void memset_func(void *descr[], void *arg)
 {
-    unsigned sizex, sizey, bz;
-    starpu_codelet_unpack_args(arg, &sizex, &sizey, &bz);
+	(void)descr;
+    	unsigned sizex, sizey, bz;
+    	starpu_codelet_unpack_args(arg, &sizex, &sizey, &bz);
 	struct block_description *block = get_block_description(bz);
-    unsigned size_bz = get_block_size(bz);
-
-    unsigned x,y,z;
-    for (x = 0; x < sizex + 2*K; x++)
-    {
-        for (y = 0; y < sizey + 2*K; y++)
-        {
-            /* Main blocks */
-            for (z = 0; z < size_bz + 2*K; z++)
-            {
-                block->layers[0][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0; 
-                block->layers[1][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0; 
-            }
-            for (z = 0; z < K; z++)
-            {
-                /* Boundary blocks : Top */
-                block->boundaries[T][0][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0; 
-                block->boundaries[T][1][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0; 
-
-                /* Boundary blocks : Bottom */
-                block->boundaries[B][0][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0; 
-                block->boundaries[B][1][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0; 
-            }
-
-        }
-    }
-    //memset(block->layers[0], 0, (sizex + 2*K)*(sizey + 2*K)*(size_bz + 2*K)*sizeof(block->layers[0]));
-    //memset(block->layers[1], 0, (sizex + 2*K)*(sizey + 2*K)*(size_bz + 2*K)*sizeof(block->layers[1]));
-
-    //memset(block->boundaries[T][0], 0, (sizex + 2*K)*(sizey + 2*K)*K*sizeof(block->boundaries[T][0]));
-    //memset(block->boundaries[T][1], 0, (sizex + 2*K)*(sizey + 2*K)*K*sizeof(block->boundaries[T][1]));
-
-    //memset(block->boundaries[B][0], 0, (sizex + 2*K)*(sizey + 2*K)*K*sizeof(block->boundaries[B][0]));
-    //memset(block->boundaries[B][1], 0, (sizex + 2*K)*(sizey + 2*K)*K*sizeof(block->boundaries[B][1]));
+    	unsigned size_bz = get_block_size(bz);
+
+	unsigned x,y,z;
+	for (x = 0; x < sizex + 2*K; x++)
+	{
+		for (y = 0; y < sizey + 2*K; y++)
+		{
+			/* Main blocks */
+			for (z = 0; z < size_bz + 2*K; z++)
+			{
+				block->layers[0][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0;
+				block->layers[1][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0;
+			}
+			for (z = 0; z < K; z++)
+			{
+				/* Boundary blocks : Top */
+				block->boundaries[T][0][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0;
+				block->boundaries[T][1][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0;
+
+				/* Boundary blocks : Bottom */
+				block->boundaries[B][0][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0;
+				block->boundaries[B][1][(x)+(y)*(sizex + 2*K)+(z)*(sizex+2*K)*(sizey+2*K)] = 0;
+			}
+		}
+	}
+	//memset(block->layers[0], 0, (sizex + 2*K)*(sizey + 2*K)*(size_bz + 2*K)*sizeof(block->layers[0]));
+	//memset(block->layers[1], 0, (sizex + 2*K)*(sizey + 2*K)*(size_bz + 2*K)*sizeof(block->layers[1]));
+
+	//memset(block->boundaries[T][0], 0, (sizex + 2*K)*(sizey + 2*K)*K*sizeof(block->boundaries[T][0]));
+	//memset(block->boundaries[T][1], 0, (sizex + 2*K)*(sizey + 2*K)*K*sizeof(block->boundaries[T][1]));
+
+	//memset(block->boundaries[B][0], 0, (sizex + 2*K)*(sizey + 2*K)*K*sizeof(block->boundaries[B][0]));
+	//memset(block->boundaries[B][1], 0, (sizex + 2*K)*(sizey + 2*K)*K*sizeof(block->boundaries[B][1]));
 }
 
 static double memset_cost_function(struct starpu_task *task, unsigned nimpl)
@@ -731,20 +731,21 @@ struct starpu_codelet cl_memset =
 };
 
 /* Initialize a block's layer */
-static void initlayer_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void initlayer_func(void *descr[], void *arg)
 {
-    unsigned sizex, sizey, bz;
-    starpu_codelet_unpack_args(arg, &sizex, &sizey, &bz);
+	(void)descr;
+	unsigned sizex, sizey, bz;
+	starpu_codelet_unpack_args(arg, &sizex, &sizey, &bz);
 	struct block_description *block = get_block_description(bz);
-    unsigned size_bz = get_block_size(bz);
-
-    /* Initialize layer with some random data */
-    unsigned x, y, z;
-    unsigned sum = 0;
-    for (x = 0; x < sizex; x++)
-        for (y = 0; y < sizey; y++)
-            for (z = 0; z < size_bz; z++)
-                sum += block->layers[0][(K+x)+(K+y)*(sizex + 2*K)+(K+z)*(sizex+2*K)*(sizey+2*K)] = (int)((x/7.+y/13.+(bz*size_bz + z)/17.) * 10.) % 2;
+	unsigned size_bz = get_block_size(bz);
+
+	/* Initialize layer with some random data */
+	unsigned x, y, z;
+	unsigned sum = 0;
+	for (x = 0; x < sizex; x++)
+		for (y = 0; y < sizey; y++)
+			for (z = 0; z < size_bz; z++)
+				sum += block->layers[0][(K+x)+(K+y)*(sizex + 2*K)+(K+z)*(sizex+2*K)*(sizey+2*K)] = (int)((x/7.+y/13.+(bz*size_bz + z)/17.) * 10.) % 2;
 }
 
 static double initlayer_cost_function(struct starpu_task *task, unsigned nimpl)

+ 4 - 4
examples/stencil/implicit-stencil-tasks.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010, 2013-2015  Université de Bordeaux
- * Copyright (C) 2012, 2013, 2015, 2016  CNRS
+ * Copyright (C) 2012, 2013, 2015, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -97,7 +97,7 @@ void create_task_initlayer(unsigned sizex, unsigned sizey, unsigned z)
  * Schedule saving boundaries of blocks to communication buffers
  */
 
-static void create_task_save_local(unsigned iter, unsigned z, int dir, int local_rank)
+static void create_task_save_local(unsigned z, int dir)
 {
 	struct block_description *descr = get_block_description(z);
 	struct starpu_codelet *codelet;
@@ -194,10 +194,10 @@ void create_tasks(int rank)
 			     int node_z_and_t = get_block_mpi_node(bz+1);
 
 			     if ((node_z == rank) || ((node_z != node_z_and_b) && (node_z_and_b == rank)))
-				     create_task_save_local(iter, bz, +1, rank);
+				     create_task_save_local(bz, +1);
 
 			     if ((node_z == rank) || ((node_z != node_z_and_t) && (node_z_and_t == rank)))
-				     create_task_save_local(iter, bz, -1, rank);
+				     create_task_save_local(bz, -1);
 		     }
 	     }
 	}

+ 1 - 0
examples/stencil/life.c

@@ -20,6 +20,7 @@
 
 void life_update(int bz, const TYPE *old, TYPE *newp, int nx, int ny, int nz, int ldy, int ldz, int iter)
 {
+	(void)bz;
 	int x, y, z, num, alive;
 
 	for (z = iter; z < nz - iter; z++)

+ 6 - 6
examples/stencil/stencil-kernels.c

@@ -501,7 +501,7 @@ unsigned top_per_worker[STARPU_NMAXWORKERS];
 unsigned bottom_per_worker[STARPU_NMAXWORKERS];
 
 /* top save, CPU version */
-void dummy_func_top_cpu(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+void dummy_func_top_cpu(void *descr[], void *arg)
 {
 	struct block_description *block = (struct block_description *) arg;
 	int workerid = starpu_worker_get_id_check();
@@ -517,7 +517,7 @@ void dummy_func_top_cpu(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
 }
 
 /* bottom save, CPU version */
-void dummy_func_bottom_cpu(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+void dummy_func_bottom_cpu(void *descr[], void *arg)
 {
 	struct block_description *block = (struct block_description *) arg;
 	(void) block;
@@ -532,7 +532,7 @@ void dummy_func_bottom_cpu(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
 
 /* top save, CUDA version */
 #ifdef STARPU_USE_CUDA
-static void dummy_func_top_cuda(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void dummy_func_top_cuda(void *descr[], void *arg)
 {
 	struct block_description *block = (struct block_description *) arg;
 	int workerid = starpu_worker_get_id_check();
@@ -548,7 +548,7 @@ static void dummy_func_top_cuda(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg
 }
 
 /* bottom save, CUDA version */
-static void dummy_func_bottom_cuda(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void dummy_func_bottom_cuda(void *descr[], void *arg)
 {
 	struct block_description *block = (struct block_description *) arg;
 	(void) block;
@@ -564,7 +564,7 @@ static void dummy_func_bottom_cuda(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *
 
 /* top save, OpenCL version */
 #ifdef STARPU_USE_OPENCL
-static void dummy_func_top_opencl(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void dummy_func_top_opencl(void *descr[], void *arg)
 {
 	struct block_description *block = (struct block_description *) arg;
 	(void) block;
@@ -581,7 +581,7 @@ static void dummy_func_top_opencl(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *a
 }
 
 /* bottom save, OPENCL version */
-static void dummy_func_bottom_opencl(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
+static void dummy_func_bottom_opencl(void *descr[], void *arg)
 {
 	struct block_description *block = (struct block_description *) arg;
 	(void) block;

+ 7 - 4
examples/stencil/stencil-tasks.c

@@ -40,7 +40,7 @@
  */
 
 /* R(z) = R(z+d) = local, just call the save kernel */
-static void create_task_save_local(unsigned iter, unsigned z, int dir, int local_rank)
+static void create_task_save_local(unsigned iter, unsigned z, int dir)
 {
 	struct starpu_task *save_task = starpu_task_create();
 	struct block_description *descr = get_block_description(z);
@@ -142,7 +142,7 @@ void create_task_save(unsigned iter, unsigned z, int dir, int local_rank)
 	if (node_z == local_rank)
 	{
 		/* Save data from update */
-		create_task_save_local(iter, z, dir, local_rank);
+		create_task_save_local(iter, z, dir);
 		if (node_z_and_d != local_rank)
 		{
 			/* R(z) = local & R(z+d) != local, We have to send the data */
@@ -167,7 +167,7 @@ void create_task_save(unsigned iter, unsigned z, int dir, int local_rank)
 	}
 #else /* !STARPU_USE_MPI */
 	STARPU_ASSERT((node_z == local_rank) && (node_z_and_d == local_rank));
-	create_task_save_local(iter, z, dir, local_rank);
+	create_task_save_local(iter, z, dir);
 #endif /* STARPU_USE_MPI */
 }
 
@@ -177,6 +177,7 @@ void create_task_save(unsigned iter, unsigned z, int dir, int local_rank)
 
 void create_task_update(unsigned iter, unsigned z, int local_rank)
 {
+	(void)local_rank; // unneeded parameter, we keep it to have a similar function prototype to the implicit case
 	STARPU_ASSERT(iter != 0);
 
 	struct starpu_task *task = starpu_task_create();
@@ -221,8 +222,10 @@ void create_task_update(unsigned iter, unsigned z, int local_rank)
 }
 
 /* Dummy empty codelet taking one buffer */
-void null_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg STARPU_ATTRIBUTE_UNUSED)
+void null_func(void *descr[], void *arg)
 {
+	(void)descr;
+	(void)arg;
 }
 
 static double null_cost_function(struct starpu_task *task, unsigned nimpl)

+ 1 - 1
examples/stencil/stencil.h

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2011, 2012, 2013  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2017  CNRS
  * Copyright (C) 2010-2011, 2014  Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify

+ 7 - 5
examples/tag_example/tag_example.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2010, 2012-2013, 2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -159,8 +159,9 @@ static int create_task_grid(unsigned piter)
 }
 
 
-void callback_cpu(void *argcb STARPU_ATTRIBUTE_UNUSED)
+void callback_cpu(void *argcb)
 {
+	(void)argcb;
 	unsigned newcnt = STARPU_ATOMIC_ADD(&callback_cnt, -1);
 	ANNOTATE_HAPPENS_BEFORE(&callback_cnt);
 
@@ -179,9 +180,10 @@ void callback_cpu(void *argcb STARPU_ATTRIBUTE_UNUSED)
 	}
 }
 
-void cpu_codelet(void *descr[] STARPU_ATTRIBUTE_UNUSED,
-			void *_args STARPU_ATTRIBUTE_UNUSED)
+void cpu_codelet(void *descr[], void *_args)
 {
+	(void)descr;
+	(void)_args;
 /*	printf("execute task\n"); */
 }
 
@@ -217,7 +219,7 @@ static void express_deps(unsigned i, unsigned j, unsigned piter)
 	}
 }
 
-int main(int argc STARPU_ATTRIBUTE_UNUSED , char **argv STARPU_ATTRIBUTE_UNUSED)
+int main(int argc, char **argv)
 {
 	int ret;
 

+ 5 - 3
examples/tag_example/tag_example2.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2012-2013, 2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -102,11 +102,13 @@ static int create_task_grid(unsigned iter)
 	return 0;
 }
 
-void cpu_codelet(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args STARPU_ATTRIBUTE_UNUSED)
+void cpu_codelet(void *descr[], void *_args)
 {
+	(void)descr;
+	(void)_args;
 }
 
-int main(int argc STARPU_ATTRIBUTE_UNUSED , char **argv STARPU_ATTRIBUTE_UNUSED)
+int main(int argc , char **argv)
 {
 	unsigned i;
 	int ret;

+ 5 - 3
examples/tag_example/tag_example3.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2012-2013, 2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -104,11 +104,13 @@ static int create_task_grid(unsigned iter)
 	return 0;
 }
 
-void cpu_codelet(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args STARPU_ATTRIBUTE_UNUSED)
+void cpu_codelet(void *descr[], void *_args)
 {
+	(void)descr;
+	(void)_args;
 }
 
-int main(int argc STARPU_ATTRIBUTE_UNUSED , char **argv STARPU_ATTRIBUTE_UNUSED)
+int main(int argc, char **argv)
 {
 	unsigned i;
 	int ret;

+ 4 - 2
examples/tag_example/tag_example4.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2012-2013  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2015  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -35,6 +35,7 @@
 
 void cpu_codelet_A(void *descr[], void *_args)
 {
+	(void)descr;
 	int *arg = _args;
 	*arg = 1;
 	fprintf(stderr,"A");
@@ -42,6 +43,7 @@ void cpu_codelet_A(void *descr[], void *_args)
 
 void cpu_codelet_B(void *descr[], void *_args)
 {
+	(void)descr;
 	int *arg = _args;
 	if (*arg != 1)
 		exit(EXIT_FAILURE);
@@ -88,7 +90,7 @@ static void parse_args(int argc, char **argv)
 	}
 }
 
-int main(int argc STARPU_ATTRIBUTE_UNUSED , char **argv STARPU_ATTRIBUTE_UNUSED)
+int main(int argc, char **argv)
 {
 	unsigned i, j;
 	int ret;

+ 5 - 3
examples/tag_example/tag_restartable.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2013, 2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -122,8 +122,10 @@ static int start_task_grid(unsigned iter)
 	return 0;
 }
 
-void cpu_codelet(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args STARPU_ATTRIBUTE_UNUSED)
+void cpu_codelet(void *descr[], void *_args)
 {
+	(void)descr;
+	(void)_args;
 /*	int i = (uintptr_t) _args;
 	printf("doing %x\n", i);
 	usleep(SLEEP);
@@ -131,7 +133,7 @@ void cpu_codelet(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args STARPU_ATTRI
 */
 }
 
-int main(int argc STARPU_ATTRIBUTE_UNUSED , char **argv STARPU_ATTRIBUTE_UNUSED)
+int main(int argc, char **argv)
 {
 	unsigned i, j;
 	int ret;

+ 5 - 2
examples/top/hello_world_top.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -63,6 +63,7 @@ struct params
 
 void cpu_func(void *buffers[], void *cl_arg)
 {
+	(void)buffers;
 	struct params *params = (struct params *) cl_arg;
 
 	//loosing time for top example...
@@ -83,6 +84,7 @@ void cpu_func(void *buffers[], void *cl_arg)
 
 void callback_name_changed(struct starpu_top_param* param)
 {
+	(void)param;
 	char* message = (char *) malloc(256);
 	sprintf(message, "Name have been changed to %s", names[name_selected]);
 	starpu_top_debug_log(message);
@@ -91,6 +93,7 @@ void callback_name_changed(struct starpu_top_param* param)
 
 void callback_number_addition_changed(struct starpu_top_param* param)
 {
+	(void)param;
 	char* message = (char *) malloc(256);
 	sprintf(message, "Number of addition is now %d", number_of_addition);
 
@@ -108,7 +111,7 @@ struct starpu_codelet cl =
 	.nbuffers = 0
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	int ret;
 

+ 0 - 0
include/starpu_sched_component.h


Some files were not shown because too many files changed in this diff