Browse Source

src/util/openmp_runtime_support_environment.c: decrease variable scope

Nathalie Furmento 8 years ago
parent
commit
18b9deda32
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/util/openmp_runtime_support_environment.c

+ 1 - 1
src/util/openmp_runtime_support_environment.c

@@ -539,7 +539,6 @@ static void free_places(struct starpu_omp_place *places)
 
 static void read_proc_bind_var()
 {
-	static const char *strings[] = { "false", "true", "master", "close", "spread", NULL };
 	const int max_levels = _initial_icv_values.max_active_levels_var + 1;
 	int *bind_list = NULL;
 	char *env;
@@ -549,6 +548,7 @@ static void read_proc_bind_var()
 	env = starpu_getenv("OMP_PROC_BIND");
 	if (env)
 	{
+		static const char *strings[] = { "false", "true", "master", "close", "spread", NULL };
 		char *saveptr, *token;
 		int level = 0;