Przeglądaj źródła

Add missing return statement

Cédric Augonnet 14 lat temu
rodzic
commit
67f15d462a
2 zmienionych plików z 4 dodań i 0 usunięć
  1. 2 0
      examples/filters/fblock.c
  2. 2 0
      examples/scheduler/dummy_sched.c

+ 2 - 0
examples/filters/fblock.c

@@ -153,4 +153,6 @@ int main(int argc, char **argv)
         print_block(block, NX, NY, NZ, NX, NX*NY);
 
 	starpu_shutdown();
+
+	return 0;
 }

+ 2 - 0
examples/scheduler/dummy_sched.c

@@ -60,6 +60,8 @@ static int push_task_dummy(struct starpu_task *task)
 	pthread_cond_signal(&sched_cond);
 
 	pthread_mutex_unlock(&sched_mutex);
+
+	return 0;
 }
 
 /* The mutex associated to the calling worker is already taken by StarPU */