Browse Source

minor fixes following warnings detected by ICC

Nathalie Furmento 13 years ago
parent
commit
ddba4a08f7
4 changed files with 6 additions and 6 deletions
  1. 1 1
      src/core/task.c
  2. 0 1
      src/datawizard/filters.c
  3. 2 2
      src/top/starpu_top.c
  4. 3 2
      src/util/starpu_data_cpy.c

+ 1 - 1
src/core/task.c

@@ -531,7 +531,7 @@ int _starpu_task_submit_conversion_task(struct starpu_task *task,
 void starpu_codelet_init(struct starpu_codelet *cl)
 {
 	memset(cl, 0, sizeof(struct starpu_codelet));
-};
+}
 
 void starpu_display_codelet_stats(struct starpu_codelet *cl)
 {

+ 0 - 1
src/datawizard/filters.c

@@ -197,7 +197,6 @@ void starpu_data_partition(starpu_data_handle_t initial_handle, struct starpu_da
 		child->last_submitted_ghost_readers_id = NULL;
 #endif
 
-		unsigned node;
 		for (node = 0; node < STARPU_MAXNODES; node++)
 		{
 			struct _starpu_data_replicate *initial_replicate;

+ 2 - 2
src/top/starpu_top.c

@@ -48,7 +48,7 @@ int _starpu_top_status_get()
 }
 
 static
-unsigned long long int current_timestamp();
+unsigned long long current_timestamp();
 
 /*********************************************
 *****************INIT FUNC********************
@@ -629,7 +629,7 @@ void starpu_top_debug_lock(const char* debug_message)
  **************TIME FUNCTION****************
  *******************************************/
 
-unsigned long long int current_timestamp()
+unsigned long long current_timestamp()
 {
 	struct timespec now;
 	_starpu_clock_gettime(&now);

+ 3 - 2
src/util/starpu_data_cpy.c

@@ -68,9 +68,10 @@ static struct starpu_codelet copy_cl =
 	.model = &copy_model
 };
 
+static
 int _starpu_data_cpy(starpu_data_handle_t dst_handle, starpu_data_handle_t src_handle,
-			int asynchronous, void (*callback_func)(void*), void *callback_arg,
-			int reduction, struct starpu_task *reduction_dep_task)
+		     int asynchronous, void (*callback_func)(void*), void *callback_arg,
+		     int reduction, struct starpu_task *reduction_dep_task)
 {
 	const struct starpu_data_copy_methods *copy_methods = dst_handle->ops->copy_methods;