Browse Source

remove unused variables

Nathalie Furmento 8 years ago
parent
commit
1274eaf930
3 changed files with 3 additions and 5 deletions
  1. 1 1
      mpi/tests/load_balancer.c
  2. 1 3
      tests/datawizard/allocate.c
  3. 1 1
      tests/datawizard/noreclaim.c

+ 1 - 1
mpi/tests/load_balancer.c

@@ -29,7 +29,7 @@ int main(int argc, char **argv)
 
 void get_neighbors(int **neighbor_ids, int *nneighbors)
 {
-	int ret, rank, size;
+	int rank, size;
 	starpu_mpi_comm_rank(MPI_COMM_WORLD, &rank);
 	starpu_mpi_comm_size(MPI_COMM_WORLD, &size);
 	*nneighbors = 1;

+ 1 - 3
tests/datawizard/allocate.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
@@ -36,7 +36,6 @@ int main(int argc, char **argv)
 static
 int test_prefetch(unsigned memnodes)
 {
-	int ret;
 	float *buffers[4];
 	starpu_data_handle_t handles[4];
 	unsigned i;
@@ -138,7 +137,6 @@ void test_malloc()
 	float *buffer;
 	float *buffer2;
 	float *buffer3;
-	size_t global_size;
 
 	/* Allocate one byte */
 	ret = starpu_malloc_flags((void **)&buffer, 1, STARPU_MALLOC_COUNT);

+ 1 - 1
tests/datawizard/noreclaim.c

@@ -74,7 +74,7 @@ static void emit_empty_task(void)
 
 int main(int argc, char **argv)
 {
-	int i, ret;
+	int ret;
 	struct starpu_conf conf;
 	starpu_data_handle_t handle;
 	void *allocated;