瀏覽代碼

minor fixes to suppress warnings

Nathalie Furmento 7 年之前
父節點
當前提交
11b9a53c7b

+ 1 - 1
examples/basic_examples/task_insert_color.c

@@ -43,7 +43,7 @@ struct starpu_codelet mycodelet_color =
 	.color = 0x0000FF,
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
 	unsigned i;
 	int value=42;

+ 3 - 2
examples/interface/complex_interface.c

@@ -1,8 +1,8 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2012-2013                                Inria
- * Copyright (C) 2012-2015,2017                           CNRS
- * Copyright (C) 2013-2015, 2018                                Université de Bordeaux
+ * Copyright (C) 2012-2015,2017,2018                      CNRS
+ * Copyright (C) 2013-2015, 2018                          Université de Bordeaux
  *
  * 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,6 +22,7 @@
 
 static int complex_pointer_is_inside(void *data_interface, unsigned node, void *ptr)
 {
+	(void)node;
 	struct starpu_complex_interface *complex_interface = data_interface;
 
 	return ((char*) ptr >= (char*) &complex_interface->real &&

+ 2 - 0
mpi/src/mpi/starpu_mpi_mpi.c

@@ -132,11 +132,13 @@ void _starpu_mpi_submit_ready_request_inc(struct _starpu_mpi_req *req)
 
 void _starpu_mpi_coop_sends_build_tree(struct _starpu_mpi_coop_sends *coop_sends)
 {
+	(void)coop_sends;
 	/* TODO: turn them into redirects & forwards */
 }
 
 void _starpu_mpi_submit_coop_sends(struct _starpu_mpi_coop_sends *coop_sends, int submit_control, int submit_data)
 {
+	(void)submit_control;
 	unsigned i, n = coop_sends->n;
 
 	/* Note: coop_sends might disappear very very soon after last request is submitted */