Parcourir la source

src/: fix spurious warnings

Nathalie Furmento il y a 14 ans
Parent
commit
e839b1951c
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      src/core/dependencies/cg.c
  2. 2 2
      src/core/sched_policy.c

+ 2 - 2
src/core/dependencies/cg.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2011  Université de Bordeaux 1
- * Copyright (C) 2010  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
  *
  * 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
@@ -160,7 +160,7 @@ void _starpu_notify_cg_list(struct starpu_cg_list_s *successors)
 		struct starpu_cg_s *cg = successors->succ[succ];
 		STARPU_ASSERT(cg);
 
-		struct starpu_tag_s *cgtag;
+		struct starpu_tag_s *cgtag = NULL;
 
 		unsigned cg_type = cg->cg_type;
 

+ 2 - 2
src/core/sched_policy.c

@@ -215,8 +215,8 @@ static int _starpu_push_task_on_specific_worker(struct starpu_task *task, int wo
 	int is_basic_worker = (workerid < nbasic_workers);
 
 	unsigned memory_node; 
-	struct starpu_worker_s *worker;
-	struct starpu_combined_worker_s *combined_worker;
+	struct starpu_worker_s *worker = NULL;
+	struct starpu_combined_worker_s *combined_worker = NULL;
 
 	if (is_basic_worker)
 	{